Revision: 1547
http://mrbs.svn.sourceforge.net/mrbs/?rev=1547&view=rev
Author: cimorrison
Date: 2010-10-25 16:51:18 +0000 (Mon, 25 Oct 2010)
Log Message:
-----------
- Corrected previous fix
- Checked the All Day checkbox if appropriate on page load
Modified Paths:
--------------
mrbs/branches/from_to_bookings/web/Themes/default/header.inc
Modified: mrbs/branches/from_to_bookings/web/Themes/default/header.inc
===================================================================
--- mrbs/branches/from_to_bookings/web/Themes/default/header.inc
2010-10-25 16:18:44 UTC (rev 1546)
+++ mrbs/branches/from_to_bookings/web/Themes/default/header.inc
2010-10-25 16:51:18 UTC (rev 1547)
@@ -503,7 +503,7 @@
var endWidth = $("#end_seconds").width();
var maxWidth = Math.max(startWidth, endWidth) + 2;
$("#end_seconds").width(maxWidth);
- $("#start_seconds").width(maxWidth);
+ $("#start_seconds").width(maxWidth);
}
<?php
}
@@ -627,9 +627,12 @@
{
?>
var form = document.getElementById('main');
- if (form && form.name && (form.name.value.length == 0))
+ if (form)
{
- form.name.focus();
+ if (form.name && (form.name.value.length == 0))
+ {
+ form.name.focus();
+ }
<?php
// Get the current vocab (in the appropriate language) for periods,
// minutes, hours
@@ -668,6 +671,21 @@
}
adjustSlotSelectors(form);
+
+ <?php
+ // If this is an All Day booking then check the All Day box and disable
the
+ // start and end time boxes
+ ?>
+ if (!form.all_day.disabled &&
+
(parseInt(form.start_seconds.options[form.start_seconds.selectedIndex].value)
== startOptions[0]['value']) &&
+
(parseInt(form.end_seconds.options[form.end_seconds.selectedIndex].value) ==
endOptions[nEndOptions - 1]['value']))
+ {
+ form.all_day.checked = true;
+ form.start_seconds.disabled = true;
+ form.end_seconds.disabled = true;
+ old_start = form.start_seconds.selectedIndex;
+ old_end = form.end_seconds.selectedIndex;
+ }
}
<?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