Revision: 1625
http://mrbs.svn.sourceforge.net/mrbs/?rev=1625&view=rev
Author: cimorrison
Date: 2010-11-22 10:23:16 +0000 (Mon, 22 Nov 2010)
Log Message:
-----------
Removed the assumption by the JavaScript that the All Day checkbox exists, just
in case anybody wants to remove it from the HTML.
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-11-21 22:00:43 UTC (rev
1624)
+++ mrbs/trunk/web/Themes/default/header.inc 2010-11-22 10:23:16 UTC (rev
1625)
@@ -429,7 +429,7 @@
// If All Day is checked then just set the start and end values to the
first
// and last possible options.
?>
- if (form.all_day.checked)
+ if (form.all_day && form.all_day.checked)
{
startValue = startOptions[area][0]['value']
endValue = endOptions[area][nEndOptions[area] - 1]['value'];
@@ -550,12 +550,15 @@
// then we disable all the time selectors (start, end and All Day) until
// the dates are fixed.
?>
- if (!form.all_day.checked)
+ if (!form.all_day || !form.all_day.checked)
{
var newState = (dateDifference < 0);
startSelect.disabled = newState;
endSelect.disabled = newState;
- form.all_day.disabled = newState;
+ if (form.all_day)
+ {
+ form.all_day.disabled = newState;
+ }
}
<?php // Destroy and rebuild the start select ?>
@@ -807,7 +810,8 @@
?>
startSelect = form["start_seconds" + currentArea];
endSelect = form["end_seconds" + currentArea];
- if (!form.all_day.disabled &&
+ if (form.all_day &&
+ !form.all_day.disabled &&
(parseInt(startSelect.options[startSelect.selectedIndex].value) ==
startOptions[currentArea][0]['value']) &&
(parseInt(endSelect.options[endSelect.selectedIndex].value) ==
endOptions[currentArea][nEndOptions[currentArea] - 1]['value']))
{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits