Revision: 1548
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1548&view=rev
Author:   cimorrison
Date:     2010-10-25 16:58:35 +0000 (Mon, 25 Oct 2010)

Log Message:
-----------
Fixed JavaScript undefined object problem

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

Modified: mrbs/trunk/web/Themes/default/header.inc
===================================================================
--- mrbs/trunk/web/Themes/default/header.inc    2010-10-25 16:51:18 UTC (rev 
1547)
+++ mrbs/trunk/web/Themes/default/header.inc    2010-10-25 16:58:35 UTC (rev 
1548)
@@ -335,13 +335,16 @@
     // When we get those we will have to do something different]
   ?>
     var form = document.getElementById('edit_area');
-    enablePeriods = false;
-    if (form.area_enable_periods[0].checked)
+    if (form)
     {
-      toggleMode(form, 0);
+      enablePeriods = false;
+      if (form.area_enable_periods[0].checked)
+      {
+        toggleMode(form, 0);
+      }
+      check_book_ahead();
     }
     
-    check_book_ahead();
   <?php
   }
   


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

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to