Title: SF.net SVN: mrbs:[2443] mrbs/branches/flexible_day_end/web/js/edit_entry.js.php
Revision
2443
Author
cimorrison
Date
2012-09-27 15:24:40 +0000 (Thu, 27 Sep 2012)

Log Message

Fixed bug when ticking the All Day checkbox with different start and end dates

Modified Paths

Diff

Modified: mrbs/branches/flexible_day_end/web/js/edit_entry.js.php (2442 => 2443)


--- mrbs/branches/flexible_day_end/web/js/edit_entry.js.php	2012-09-27 15:13:59 UTC (rev 2442)
+++ mrbs/branches/flexible_day_end/web/js/edit_entry.js.php	2012-09-27 15:24:40 UTC (rev 2443)
@@ -47,7 +47,8 @@
     onAllDayClick.oldEnd = parseInt(endSelect.val(), 10);
     onAllDayClick.oldEndDatepicker = endDatepicker.datepicker('getDate');
     endSelect.val(lastSlot);
-    if (lastSlot < firstSlot)
+    if ((lastSlot < firstSlot) && 
+        (onAllDayClick.oldStartDatepicker == onAllDayClick.oldEndDatepicker))
     {
       <?php
       // If the booking day spans midnight then the first and last slots
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to