summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-01-03 21:56:09 +0545
committerPhil Davis <phil.davis@inf.org>2016-01-03 21:56:09 +0545
commit90d9dcecde8f7b26ff3eab0700347d14fc0adcda (patch)
treea8cbb452416b3a3979c8f1dfe73f8482c62d10ce /src
parent9109177f8315f31dda7724b26a98188696f71417 (diff)
downloadpfsense-90d9dcecde8f7b26ff3eab0700347d14fc0adcda.zip
pfsense-90d9dcecde8f7b26ff3eab0700347d14fc0adcda.tar.gz
Redmine #5728 Fix delete row button in Firewall Schedule Edit
The calls to delete_row() were going off to some other delete_row() function and not doing what was needed. Give delete_row() here a unique name and it all works again.
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/firewall_schedule_edit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/firewall_schedule_edit.php b/src/usr/local/www/firewall_schedule_edit.php
index c40f4fc..190a1d0 100644
--- a/src/usr/local/www/firewall_schedule_edit.php
+++ b/src/usr/local/www/firewall_schedule_edit.php
@@ -701,7 +701,7 @@ events.push(function() {
$('[id^=Delete]').prop('type', 'button');
$('[id^=Delete]').click(function(event) {
- delete_row(event.target.id.slice(6));
+ fse_delete_row(event.target.id.slice(6));
});
});
//]]>
@@ -1170,7 +1170,7 @@ function insertElements(tempFriendlyTime, starttimehour, starttimemin, stoptimeh
$(rowhtml.replace(/@/g, counter)).insertBefore(node);
$('[id^=delete]').click(function(event) {
- delete_row(event.target.id.slice(6));
+ fse_delete_row(event.target.id.slice(6));
});
counter++;
@@ -1184,7 +1184,7 @@ function insertElements(tempFriendlyTime, starttimehour, starttimemin, stoptimeh
}
// If only everything were this simple
-function delete_row(row) {
+function fse_delete_row(row) {
$('.schedulegrp' + row).remove();
}
//]]>
OpenPOWER on IntegriCloud