Revision: 2110
          http://mrbs.svn.sourceforge.net/mrbs/?rev=2110&view=rev
Author:   cimorrison
Date:     2011-10-18 09:33:31 +0000 (Tue, 18 Oct 2011)
Log Message:
-----------
Fixed bug where the Ajax advance booking checking on the edit_entry form wasn't 
picking up start and end times properly.

Modified Paths:
--------------
    mrbs/trunk/web/Themes/default/header.inc

Modified: mrbs/trunk/web/Themes/default/header.inc
===================================================================
--- mrbs/trunk/web/Themes/default/header.inc    2011-10-18 09:22:58 UTC (rev 
2109)
+++ mrbs/trunk/web/Themes/default/header.inc    2011-10-18 09:33:31 UTC (rev 
2110)
@@ -649,16 +649,11 @@
     
     // Get the value of the field in the form
     ?>
-    function getFormValue(form, field)
+    function getFormValue(formInput)
     {
-      <?php
-      // We need to exclude the disabled elements, because otherwise jQuery
-      // will pick them all up
-      ?>
       var value;
-      var formInput = form.find('[name="' + field + '"]');
       <?php // Scalar parameters (two types - checkboxes and the rest) ?>
-      if (field.indexOf('[]') == -1)
+      if ($(this).attr('name').indexOf('[]') == -1)
       {
         if (formInput.filter(':checkbox').length > 0)
         {
@@ -725,7 +720,7 @@
             var fieldName = $(this).attr('name');
             if (params[fieldName] === undefined)
             {
-              params[fieldName] = getFormValue(form, fieldName);
+              params[fieldName] = getFormValue($(this));
             }
           });
         

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to