summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html2
-rw-r--r--scripts/rhizicore.js5
2 files changed, 6 insertions, 1 deletions
diff --git a/index.html b/index.html
index 00163aba..80cec76a 100644
--- a/index.html
+++ b/index.html
@@ -41,7 +41,7 @@
<div class='editlinkinfo'>
<form id='editlinkform'>
- <input id="editlinkname"/>
+ <input id="editlinkname" onkeyup="Expand(this);"/>
</form>
</div>
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js
index 70adfc3b..f8bf53ed 100644
--- a/scripts/rhizicore.js
+++ b/scripts/rhizicore.js
@@ -1064,3 +1064,8 @@ function customSize(type) {
}
return size;
}
+
+function Expand(obj){
+ if (!obj.savesize) obj.savesize=obj.size;
+ obj.size=Math.max(obj.savesize,obj.value.length);
+}