Author: jablko
Date: Sun Oct 24 21:31:30 2010
New Revision: 8451
Log:
Reattach date behavior
Modified:
trunk/js/dialog.js
Modified: trunk/js/dialog.js
==============================================================================
--- trunk/js/dialog.js Sun Oct 24 18:49:05 2010 (r8450)
+++ trunk/js/dialog.js Sun Oct 24 21:31:30 2010 (r8451)
@@ -118,6 +118,10 @@
// Remove all showEvent listeners to prevent default "focusFirst"
// behavior
this.yuiDialog.showEvent.unsubscribeAll();
+ this.yuiDialog.showEvent.subscribe(function ()
+ {
+ Drupal.behaviors.date.attach(thisDialog.table.parentNode);
+ });
// Append hidden fields to form on submit
this.onSubmit = function (event)
@@ -419,8 +423,6 @@
// Clear autocomplete fields
$('input.form-autocomplete', this.table).val('');
- Drupal.behaviors.date.attach(this.table.parentNode);
-
return this;
}
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.