Commit 292281848252693146142c0f3ef6c29aa969923d
1 parent
546a2d06
commented disable function
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2367 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
0 deletions
presentation/lookAndFeel/knowledgeTree/js/misc.js
| @@ -8,6 +8,9 @@ function redirTimer(redirTime, redirURL) { | @@ -8,6 +8,9 @@ function redirTimer(redirTime, redirURL) { | ||
| 8 | alert("set redirect time=" + redirTime + ", url=" + redirURL); | 8 | alert("set redirect time=" + redirTime + ", url=" + redirURL); |
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | +/** | ||
| 12 | + * Disables an element by blurring as soon as it focuses | ||
| 13 | + */ | ||
| 11 | function disable(elem) { | 14 | function disable(elem) { |
| 12 | elem.onfocus=elem.blur; | 15 | elem.onfocus=elem.blur; |
| 13 | } | 16 | } |