mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge pull request #1288 from brunostein/fix_button_close_info_box
This commit is contained in:
commit
90a9593094
@ -334,7 +334,7 @@ function print_info_box_np($msg, $name="apply",$value="", $showapply=false) {
|
||||
}
|
||||
|
||||
if(!$savebutton) {
|
||||
$savebutton = "<td class=\"infoboxsave\"><input value=\"" . gettext("Close") . "\" type=\"button\" onclick=\"jQuery('#redboxtable').hide();\" /></td>";
|
||||
$savebutton = "<td class=\"infoboxsave\"><input value=\"" . gettext("Close") . "\" type=\"button\" onclick=\"jQuery(this).parents('table[id=redboxtable]').hide();\" /></td>";
|
||||
}
|
||||
|
||||
echo <<<EOFnp
|
||||
@ -399,7 +399,7 @@ function print_info_box_np_undo($msg, $name="apply",$value="Apply changes", $und
|
||||
|
||||
|
||||
if(!$savebutton) {
|
||||
$savebutton = "<td class=\"infoboxsave\"><input value=\"" . gettext("Close") . "\" type=\"button\" onclick=\"jQuery('#redboxtable').hide();\" /></td>";
|
||||
$savebutton = "<td class=\"infoboxsave\"><input value=\"" . gettext("Close") . "\" type=\"button\" onclick=\"jQuery(this).parents('table[id=redboxtable]').hide();\" /></td>";
|
||||
}
|
||||
|
||||
echo <<<EOFnp
|
||||
|
||||
Loading…
Reference in New Issue
Block a user