Skip to content

Commit

Permalink
Item9496: optimize
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/branches/Release01x01@11556 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
ArthurClemens authored and ArthurClemens committed Apr 25, 2011
1 parent 233afa8 commit 8a722ee
Showing 1 changed file with 3 additions and 8 deletions.
Expand Up @@ -4,9 +4,9 @@
* http://www.hagenburger.net/BLOG/HTML5-Input-Placeholder-Fix-With-jQuery.html
*
* Usage:
*
* <input type="text" class="foswikiInputField" placeholder="Fill me ...">
*
*
* <input type="text" class="foswikiInputField" placeholder="Fill me ...">
*
*/
jQuery.placeholder = function() {
$('[placeholder]').focus(function() {
Expand Down Expand Up @@ -38,11 +38,6 @@ jQuery.placeholder = function() {
});
};

/* when using AJAX */
$('[placeholder]').livequery(function() {
$.placeholder($(this));
});

$(document).ready(function() {
$.placeholder();
});

0 comments on commit 8a722ee

Please sign in to comment.