From 7a95086e401ad7119782f766be021f90c7fa6414 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Tue, 23 Apr 2013 17:15:42 -0700 Subject: [PATCH] Turn clear into a button, to avoid it being the default submit http://virtualmin.com/node/26704 --- cluster-shell/index.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cluster-shell/index.cgi b/cluster-shell/index.cgi index d3943ebbb..211f9a60d 100755 --- a/cluster-shell/index.cgi +++ b/cluster-shell/index.cgi @@ -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'} ],