summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/forms.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-03-23 08:12:44 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-03-23 08:12:44 +0000
commita47ca5eba7468284d5f1118c5e81baf708954304 (patch)
tree448dae7a4c871f9c9c516002681fd96c0e103a21 /frontends/php/include/forms.inc.php
parentc9ab150760446741460d7ef65de9f5ca643beb82 (diff)
downloadzabbix-a47ca5eba7468284d5f1118c5e81baf708954304.tar.gz
zabbix-a47ca5eba7468284d5f1118c5e81baf708954304.tar.xz
zabbix-a47ca5eba7468284d5f1118c5e81baf708954304.zip
- simpled code for butons with question alerts
- minor fixes - minore php code improvement git-svn-id: svn://svn.zabbix.com/trunk@3911 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/forms.inc.php')
-rw-r--r--frontends/php/include/forms.inc.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php
index 5816ce6d..66e07f5d 100644
--- a/frontends/php/include/forms.inc.php
+++ b/frontends/php/include/forms.inc.php
@@ -1608,9 +1608,7 @@
$frmItem->AddRow(S_KEEP_HISTORY_IN_DAYS, array(
new CNumericBox("history",$history,8),
(!isset($_REQUEST["itemid"])) ? null :
- new CButton("del_history",
- "Clean history",
- "return Confirm('History cleaning can take a long time. Continue?');")
+ new CButtonQMessage("del_history",S_CLEAN_HISTORY,S_HISTORY_CLEANING_CAN_TAKE_A_LONG_TIME_CONTINUE_Q)
));
$frmItem->AddRow(S_KEEP_TRENDS_IN_DAYS, new CNumericBox("trends",$trends,8));