diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2012-04-05 06:54:27 -0700 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2012-04-05 06:54:27 -0700 |
| commit | 7d91abbe13a21c30ce32a7c6e5a4d71c4acc3790 (patch) | |
| tree | 7b23aed90fe5a568dc68a38ad790aed191d56b86 /budget/static/js/ihatemoney.js | |
| parent | 870101c237cf75f6984df62a9fa6417c73542d1a (diff) | |
| parent | be32a2550ec3b40d393620c301bbaa5bb59d1bc2 (diff) | |
| download | ihatemoney-mirror-7d91abbe13a21c30ce32a7c6e5a4d71c4acc3790.zip ihatemoney-mirror-7d91abbe13a21c30ce32a7c6e5a4d71c4acc3790.tar.gz ihatemoney-mirror-7d91abbe13a21c30ce32a7c6e5a4d71c4acc3790.tar.bz2 | |
Merge pull request #85 from fredericsureau/master
Update to Boostrap v2
Diffstat (limited to 'budget/static/js/ihatemoney.js')
| -rw-r--r-- | budget/static/js/ihatemoney.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/budget/static/js/ihatemoney.js b/budget/static/js/ihatemoney.js index 0bbd542..6a813b9 100644 --- a/budget/static/js/ihatemoney.js +++ b/budget/static/js/ihatemoney.js @@ -15,30 +15,3 @@ } } -// Automatically hide and show the default value of a text field -// handly in order to write user information in the text field. -// jquery selector should return only one text field. - var auto_hide_default_text = function(text_field_selector){ - // record the text in the text field before the first text field focus - var default_text; - - var hide_text = function(){ - if(default_text==undefined){ - default_text=this.value; - this.value=""; - } - else if(this.value==default_text){ - this.value=""; - } - } - - var show_text = function(){ - if(this.value==""){ - this.value=default_text; - } - } - - var field = $(text_field_selector); - field.focus(hide_text); - field.blur(show_text); - }
\ No newline at end of file |
