summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-03-31 16:38:24 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-03-31 16:39:15 -0300
commit2def89a2ddff8d7183a03c385fba8394c5bbf08e (patch)
tree268580d627e989687b8c47d91653898c2e5a1b3f
parentaa87bae5fc11a857c9dc7793fc4a932cc860e94a (diff)
downloadpfsense-2def89a2ddff8d7183a03c385fba8394c5bbf08e.zip
pfsense-2def89a2ddff8d7183a03c385fba8394c5bbf08e.tar.gz
Fix #3555, on chrome it is not initializing correct minutes when adding a new time, just drop unused php variables and set it on jsRELENG_2_1_1
-rw-r--r--usr/local/www/firewall_schedule_edit.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/usr/local/www/firewall_schedule_edit.php b/usr/local/www/firewall_schedule_edit.php
index b7cc7c3..98f9ce1 100644
--- a/usr/local/www/firewall_schedule_edit.php
+++ b/usr/local/www/firewall_schedule_edit.php
@@ -60,12 +60,6 @@ require_once("shaper.inc");
$pgtitle = array(gettext("Firewall"),gettext("Schedules"),gettext("Edit"));
-$starttimehr = 00;
-$starttimemin = 00;
-
-$stoptimehr = 23;
-$stoptimemin = 59;
-
$dayArray = array (gettext('Mon'),gettext('Tues'),gettext('Wed'),gettext('Thur'),gettext('Fri'),gettext('Sat'),gettext('Sun'));
$monthArray = array (gettext('January'),gettext('February'),gettext('March'),gettext('April'),gettext('May'),gettext('June'),gettext('July'),gettext('August'),gettext('September'),gettext('October'),gettext('November'),gettext('December'));
@@ -669,10 +663,10 @@ function clearCalendar(){
}
function clearTime(){
- document.getElementById("starttimehour").value = $starttimehr;
- document.getElementById("starttimemin").value = $starttimemin;
- document.getElementById("stoptimehour").value = $stoptimehr;
- document.getElementById("stoptimemin").value = $stoptimemin;
+ document.getElementById("starttimehour").value = "0";
+ document.getElementById("starttimemin").value = "00";
+ document.getElementById("stoptimehour").value = "23";
+ document.getElementById("stoptimemin").value = "59";
}
function clearDescr(){
OpenPOWER on IntegriCloud