[Jifty-commit] r5240 - jifty/branches/jquery/share/web/static/js
Jifty commits
jifty-commit at lists.jifty.org
Wed Mar 26 20:41:45 EDT 2008
Author: gugod
Date: Wed Mar 26 20:41:43 2008
New Revision: 5240
Modified:
jifty/branches/jquery/share/web/static/js/jifty.js
Log:
This fixes 8-placeholder.t test. Was broken because the event handlers
are bound to a wrong variable.
Modified: jifty/branches/jquery/share/web/static/js/jifty.js
==============================================================================
--- jifty/branches/jquery/share/web/static/js/jifty.js (original)
+++ jifty/branches/jquery/share/web/static/js/jifty.js Wed Mar 26 20:41:43 2008
@@ -1507,10 +1507,11 @@
initialize: function(element, text) {
this.element = Jifty.$(element);
this.text = text;
+ this.element.placeholderText = this.text;
var self = this;
- jQuery(element)
+ jQuery( this.element )
.bind("focus", function(event) {
self.onFocus();
})
More information about the Jifty-commit
mailing list