openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit c23bef13791ac7c5c674de6b22164a56c4256300
parent a0c9b1d7322ed4c75f797ecdadb50355014a88ab
Author: Jan Dankert <devnull@localhost>
Date:   Wed, 19 Sep 2012 00:21:39 +0200

Hint nicht setzen, wenn im Eingabefeld Inhalt vorhanden ist.

Diffstat:
themes/default/js/plugin/jquery-plugin-orHint.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/themes/default/js/plugin/jquery-plugin-orHint.js b/themes/default/js/plugin/jquery-plugin-orHint.js @@ -6,7 +6,8 @@ jQuery.fn.orHint = function() $(this).each(function(i) { - $(this).val($(this).attr('data-hint')).addClass('hint'); + if ($(this).val() == '') + $(this).val($(this).attr('data-hint')).addClass('hint'); }); return $(this).focus(function()