Revision: 2641
          https://sourceforge.net/p/mrbs/code/2641/
Author:   cimorrison
Date:     2013-01-12 18:05:45 +0000 (Sat, 12 Jan 2013)
Log Message:
-----------
Fixed a bug causing Ajax conflict testing not to work after a failed HTML5 form 
validation event

Modified Paths:
--------------
    mrbs/trunk/web/js/edit_entry.js.php

Modified: mrbs/trunk/web/js/edit_entry.js.php
===================================================================
--- mrbs/trunk/web/js/edit_entry.js.php 2013-01-09 15:04:36 UTC (rev 2640)
+++ mrbs/trunk/web/js/edit_entry.js.php 2013-01-12 18:05:45 UTC (rev 2641)
@@ -264,6 +264,14 @@
             $(this).trigger('validate');
           });
           <?php
+          // When a form validation fails we need to clear the submit flag 
because
+          // otherwise checkConflicts() won't do anything (because we don't 
check
+          // for conflicts on a submit)
+          ?>
+          $(field).bind('invalid', function() {
+            $(this).closest('form').removeData('submit');
+          });
+          <?php
           // Trigger the validate event when the form is first loaded
           ?>
           $(field).trigger('validate');
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to