Revision: 1237
http://mrbs.svn.sourceforge.net/mrbs/?rev=1237&view=rev
Author: cimorrison
Date: 2009-11-02 15:00:14 +0000 (Mon, 02 Nov 2009)
Log Message:
-----------
Removed the checks that tested whether at least one repeat day had been checked
in the case of weekly and n-weekly repeats. The checks were not necessary
because if no repeat days are checked, MRBS assumes that the repeat day is the
day of the week of the start of the period (as indeed it says in the Help text).
Modified Paths:
--------------
mrbs/trunk/web/edit_entry.php
mrbs/trunk/web/edit_entry_handler.php
Modified: mrbs/trunk/web/edit_entry.php
===================================================================
--- mrbs/trunk/web/edit_entry.php 2009-11-02 14:44:47 UTC (rev 1236)
+++ mrbs/trunk/web/edit_entry.php 2009-11-02 15:00:14 UTC (rev 1237)
@@ -308,26 +308,6 @@
return false;
}
- if ((document.forms["main"].rep_type.value != 0) &&
- (document.forms["main"].rep_type[2].checked ||
- document.forms["main"].rep_type[6].checked))
- {
- ok = false;
- for (j=0; j < 7; j++)
- {
- if (document.forms["main"]["rep_day["+j+"]"].checked)
- {
- ok = true;
- break;
- }
- }
-
- if (ok == false)
- {
- alert("<?php echo get_vocab("you_have_not_entered") . '\n' .
get_vocab("rep_rep_day") ?>");
- return false;
- }
- }
// check that a room(s) has been selected
// this is needed as edit_entry_handler does not check that a room(s)
Modified: mrbs/trunk/web/edit_entry_handler.php
===================================================================
--- mrbs/trunk/web/edit_entry_handler.php 2009-11-02 14:44:47 UTC (rev
1236)
+++ mrbs/trunk/web/edit_entry_handler.php 2009-11-02 15:00:14 UTC (rev
1237)
@@ -170,30 +170,6 @@
print_footer(TRUE);
}
-if ($rep_type == 2 || $rep_type == 6)
-{
- $got_rep_day = 0;
- for ($i = 0; $i < 7; $i++)
- {
- if ($rep_day[$i])
- {
- $got_rep_day =1;
- break;
- }
- }
- if ($got_rep_day == 0)
- {
- print_header($day, $month, $year, $area, isset($room) ? $room : "");
-?>
- <h1><?php echo get_vocab('invalid_booking'); ?></h1>
- <p>
- <?php echo get_vocab('you_have_not_entered')."
".get_vocab("rep_rep_day"); ?>
- </p>
-<?php
- // Print footer and exit
- print_footer(TRUE);
- }
-}
if (($rep_type == 6) && ($rep_num_weeks < 2))
{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits