From be32a2550ec3b40d393620c301bbaa5bb59d1bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Sureau?= Date: Thu, 5 Apr 2012 15:40:09 +0200 Subject: Update to Boostrap v2. Remove unused libs (QTip, JQueryUI) and add bootstrap-datepicker which is much lighter. --- budget/static/js/ihatemoney.js | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'budget/static/js/ihatemoney.js') 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 -- cgit v1.1