summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-04-07 11:49:15 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-04-07 11:49:15 -0300
commitdc915669b8f617e02e9c527a8e2024cc78963e4b (patch)
treeec1dce529337e4f6abb75a7b7e36fd01b9431289
parent2def89a2ddff8d7183a03c385fba8394c5bbf08e (diff)
parent251a12460e1bf50d0c456c895c0c8a4bfadb49e3 (diff)
downloadpfsense-dc915669b8f617e02e9c527a8e2024cc78963e4b.zip
pfsense-dc915669b8f617e02e9c527a8e2024cc78963e4b.tar.gz
Merge pull request #1053 from marcelloc/patch-1
-rwxr-xr-xusr/local/www/pkg_edit.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php
index a6e1299..0e8cb96 100755
--- a/usr/local/www/pkg_edit.php
+++ b/usr/local/www/pkg_edit.php
@@ -295,8 +295,10 @@ if ($pkg['custom_php_after_head_command'])
//delete current line jQuery function
jQuery('#maintable td .delete').live('click', function() {
//do not remove first line
- if (jQuery("#maintable tr").length > 2)
+ if (jQuery("#maintable tr").length > 2){
jQuery(this).parent().parent().remove();
+ return false;
+ }
});
//add new line jQuery function
@@ -306,6 +308,7 @@ if ($pkg['custom_php_after_head_command'])
var new_row=jQuery("table#maintable tr:last").html().replace(/(name|id)="(\w+)(\d+)"/g,"$1='$2"+c_id+"'");
//apply new id to created line rowhelperid
jQuery("table#maintable tr:last").after("<tr>"+new_row+"<\/tr>");
+ return false;
});
// Call enablechange function
enablechange();
OpenPOWER on IntegriCloud