Revision: 2124
          http://mrbs.svn.sourceforge.net/mrbs/?rev=2124&view=rev
Author:   cimorrison
Date:     2011-10-20 09:45:06 +0000 (Thu, 20 Oct 2011)
Log Message:
-----------
Got rid of JavaScript error on the edit_entry page when you switch to an area 
with no rooms

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

Modified: mrbs/branches/draggable_bookings/web/Themes/default/header.inc
===================================================================
--- mrbs/branches/draggable_bookings/web/Themes/default/header.inc      
2011-10-20 09:33:47 UTC (rev 2123)
+++ mrbs/branches/draggable_bookings/web/Themes/default/header.inc      
2011-10-20 09:45:06 UTC (rev 2124)
@@ -752,7 +752,7 @@
         // that problem, delete the property if the array (really an object) 
is empty
         ?>
         $.each(params, function(i, val) {
-            if ((typeof(val) == 'object') && (val.length == 0))
+            if ((typeof(val) == 'object') && ((val === null) || (val.length == 
0)))
             {
               delete params[i];
             }

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


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Ciosco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to