Author: jablko
Date: Thu Oct 28 05:39:24 2010
New Revision: 8631
Log:
Do nothing in dialog submit event listener unless a new related resource has
been entered, fixes issue 1782
This is only a partial fix, dialog.js and autocomplete.js have some duplicate
code that would ideally be refactored, but this would be a large change
Modified:
trunk/js/dialog.js
Modified: trunk/js/dialog.js
==============================================================================
--- trunk/js/dialog.js Thu Oct 28 04:20:05 2010 (r8630)
+++ trunk/js/dialog.js Thu Oct 28 05:39:24 2010 (r8631)
@@ -126,6 +126,12 @@
// Append hidden fields to form on submit
this.onSubmit = function (event)
{
+ // Issue 1782
+ if (!thisDialog.iframes.length)
+ {
+ return;
+ }
+
event.preventDefault();
thisDialog.appendHiddenFields();
--
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.