Author: nathangray
New Revision: 31105
URL: http://www.egroupware.org/viewvc/egroupware?rev=31105&view=rev
Log:
Fix button events to not fire twice or submit the form
Modified:
branches/etemplate2/etemplate/js/widgets.js
Modified: branches/etemplate2/etemplate/js/widgets.js
URL: http://www.egroupware.org/viewvc/egroupware/branches/etemplate2/etemplate/js/widgets.js?rev=31105&r1=31104&r2=31105&view=diff
— branches/etemplate2/etemplate/js/widgets.js (original)
+++ branches/etemplate2/etemplate/js/widgets.js Fri Jun 25 15:19:40 2010
@@ -242,6 +242,7 @@
// Put the “on” prefix onto the event name, the PHP side needs it
e.handler = function() {
ajax_submit(this.form, this.id, ‘on’ + e.event);
-
return false; }; }
@@ -563,12 +564,7 @@
else
{
this.button = $(document.createElement(‘button’)).
-
text(this.options.label). -
click(function() { -
//Submit event, don't bubble -
ajax_submit(this.form, this.id, 'onclick'); -
return false; -
});
-
text(this.options.label); } // Set input for parent - used in setValue()
ThinkGeek and WIRED’s GeekDad team up for the Ultimate
GeekDad Father’s Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs