From 67caec0a308312b19cc85f6c09e482d717c0f252 Mon Sep 17 00:00:00 2001 From: osmiy Date: Thu, 22 Mar 2007 15:12:52 +0000 Subject: - improved JS supporting for IE git-svn-id: svn://svn.zabbix.com/trunk@3909 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/items.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'frontends/php/items.php') diff --git a/frontends/php/items.php b/frontends/php/items.php index acfb1f83..f7fb45d8 100644 --- a/frontends/php/items.php +++ b/frontends/php/items.php @@ -782,7 +782,7 @@ include_once "include/page_header.php"; $error=new CCol($db_item["error"],"on"); } - $applications = $show_applications == 1 ? implode(', ', get_applications_by_itemid($db_item["itemid"], 'name')) : null; + $applications = $show_applications ? implode(', ', get_applications_by_itemid($db_item["itemid"], 'name')) : null; $chkBox = new CCheckBox("group_itemid[]",null,null,$db_item["itemid"]); //if($db_item["templateid"] > 0) $chkBox->SetEnabled(false); @@ -795,23 +795,20 @@ include_once "include/page_header.php"; $db_item["trends"], item_type2str($db_item['type']), $status, - $show_applications ? $applications : null, + $applications, $error )); } $footerButtons = array(); - array_push($footerButtons, new CButton('group_task',S_ACTIVATE_SELECTED, - "return Confirm('".S_ACTIVATE_SELECTED_ITEMS_Q."');")); + array_push($footerButtons, new CButtonQMessage('group_task',S_ACTIVATE_SELECTED,S_ACTIVATE_SELECTED_ITEMS_Q)); array_push($footerButtons, SPACE); - array_push($footerButtons, new CButton('group_task',S_DISABLE_SELECTED, - "return Confirm('".S_DISABLE_SELECTED_ITEMS_Q."');")); + array_push($footerButtons, new CButtonQMessage('group_task',S_DISABLE_SELECTED,S_DISABLE_SELECTED_ITEMS_Q)); array_push($footerButtons, SPACE); - array_push($footerButtons, new CButton('group_task',S_CLEAN_HISTORY_SELECTED_ITEMS, - "return Confirm('".S_HISTORY_CLEANING_CAN_TAKE_A_LONG_TIME_CONTINUE_Q."');")); + array_push($footerButtons, new CButtonQMessage('group_task',S_CLEAN_HISTORY_SELECTED_ITEMS, + S_HISTORY_CLEANING_CAN_TAKE_A_LONG_TIME_CONTINUE_Q)); array_push($footerButtons, SPACE); - array_push($footerButtons, new CButton('group_task',S_DELETE_SELECTED, - "return Confirm('".S_DELETE_SELECTED_ITEMS_Q."');")); + array_push($footerButtons, new CButtonQMessage('group_task',S_DELETE_SELECTED,S_DELETE_SELECTED_ITEMS_Q)); array_push($footerButtons, SPACE); array_push($footerButtons, new CButton('form_copy_to',S_COPY_SELECTED_TO)); array_push($footerButtons, SPACE); -- cgit