Revision: 1999
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1999&view=rev
Author:   cimorrison
Date:     2011-09-23 10:51:51 +0000 (Fri, 23 Sep 2011)
Log Message:
-----------
Fixed bug resulting in a JavaScript error if you try and go to the edit_entry 
page when not logged in and the default duration is All Day

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-23 10:43:45 UTC (rev 
1998)
+++ mrbs/trunk/web/Themes/default/header.inc    2011-09-23 10:51:51 UTC (rev 
1999)
@@ -1053,12 +1053,15 @@
 
   <?php
   // Check the All Day box if that's the default and then call the function
-  // that handles changes
+  // that handles changes.  (Note - the call to OnAllDayClick() comes inside
+  // an each() in case there isn't an all_day checkbox, which there won't be
+  // if we're logging in)
   if ($default_duration_all_day)
   {
     ?>
-    $('#all_day').attr('checked', true);
-    OnAllDayClick(true);
+    $('#all_day').attr('checked', true).each(function() {
+        OnAllDayClick(true);
+      });
     <?php
   }
   

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


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to