Turn clear into a button, to avoid it being the default submit http://virtualmin.com/node/26704

This commit is contained in:
Jamie Cameron
2013-04-23 17:15:42 -07:00
parent 1170a556a1
commit 7a95086e40

View File

@@ -18,7 +18,8 @@ close(COMMANDS);
if (@commands) {
print &ui_table_row($text{'index_old'},
&ui_select("old", undef, [ &unique(@commands) ])." ".
&ui_submit($text{'index_clear'}, "clear"));
&ui_button($text{'index_clear'}, "clear", undef,
"onClick='window.location = \"run.cgi?clear=1\"'"));
}
@opts = ( [ "ALL", $text{'index_all'} ],