summaryrefslogtreecommitdiffstats
path: root/usr
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:38:48 -0300
commit5c757d82d84c5363cd5c3d1b3df7d8bf1c641388 (patch)
treec720ca69384b640e637e39521ad059c75b267db0 /usr
parent291e0a1c88bb27eab054b40c8ed5b79804d100a3 (diff)
downloadpfsense-5c757d82d84c5363cd5c3d1b3df7d8bf1c641388.zip
pfsense-5c757d82d84c5363cd5c3d1b3df7d8bf1c641388.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 js
Diffstat (limited to 'usr')
-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 1ff324b..4b361b1 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