Revision: 2119
          http://mrbs.svn.sourceforge.net/mrbs/?rev=2119&view=rev
Author:   cimorrison
Date:     2011-10-19 22:02:05 +0000 (Wed, 19 Oct 2011)
Log Message:
-----------
Fixed bug when selecting just a single cell in the week view

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-19 21:38:14 UTC (rev 2118)
+++ mrbs/branches/draggable_bookings/web/Themes/default/header.inc      
2011-10-19 22:02:05 UTC (rev 2119)
@@ -1533,9 +1533,12 @@
               {
                 <?php
                 // 'seconds' behaves slightly differently to the other 
parameters:
-                // we need to know the end time for the new slot
+                // we need to know the end time for the new slot.    Also it's 
possible
+                // for us to have a zero div, eg when selecting a new booking, 
and if
+                // so we need to make sure there's something returned
                 ?>
-                if (tableData[axis].key == 'seconds')
+                if ((tableData[axis].key == 'seconds') ||
+                    (params[tableData[axis].key].length == 0))
                 {
                   params[tableData[axis].key].push(data[i].value);
                 }

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