Revision: 1942
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1942&view=rev
Author:   cimorrison
Date:     2011-09-08 23:03:38 +0000 (Thu, 08 Sep 2011)
Log Message:
-----------
Fixed bug whereby the Ajax policy checking wasn't working properly after a 
change of area

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-09-08 21:14:51 UTC (rev 
1941)
+++ mrbs/trunk/web/Themes/default/header.inc    2011-09-08 23:03:38 UTC (rev 
1942)
@@ -364,11 +364,15 @@
       
       foreach ($params as $param)
       {
+        // We need to exclude the disabled elements, because otherwise jQuery
+        // will pick them all up
+        ?>
+        formInput = form.find('[name="<?php echo $param ?>"]:not(:disabled)');
+        <?php
         // Scalar parameters (two types - checkboxes and the rest)
         if (strpos($param, '[]') === FALSE)
         {
           ?>
-          formInput = form.find('[name="<?php echo $param ?>"]');
           if (formInput.filter(':checkbox').length > 0)
           {
             params.<?php echo $param ?> = formInput.is(':checked') ? '1' : '';
@@ -383,7 +387,6 @@
         else
         {
           ?>
-          formInput = form.find('[name="<?php echo $param ?>"]');
           params['<?php echo $param ?>'] = [];
           if (formInput.filter(':checkbox').length > 0)
           {
@@ -829,6 +832,7 @@
     var maxWidth = Math.max(startWidth, endWidth) + 2;
     $(startId).width(maxWidth);
     $(endId).width(maxWidth);
+    
   } <?php // function adjustSlotSelectors() ?>
 
 <?php

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


------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to