summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnmol Agrawal <anmol1771@gmail.com>2014-09-29 21:38:42 +0530
committerAnmol Agrawal <anmol1771@gmail.com>2014-09-29 21:38:42 +0530
commit1063b78adc96fb7e585b546708df3eef07349003 (patch)
tree5ea29a7bd3953de7dbc52bc52898a22b51f79cc0
parent89e36128a20d68ed3c4f5af86a2bd3df57505818 (diff)
change #2 to issue #74
-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);
+}