diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-03-22 15:12:52 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-03-22 15:12:52 +0000 |
| commit | 67caec0a308312b19cc85f6c09e482d717c0f252 (patch) | |
| tree | 5566dedd907341525bfa9f8c595812d69ab67033 /frontends/php/items.php | |
| parent | eb9c8c4c00ab339b6e105b35d65f3c99dc5cb677 (diff) | |
| download | zabbix-67caec0a308312b19cc85f6c09e482d717c0f252.tar.gz zabbix-67caec0a308312b19cc85f6c09e482d717c0f252.tar.xz zabbix-67caec0a308312b19cc85f6c09e482d717c0f252.zip | |
- improved JS supporting for IE
git-svn-id: svn://svn.zabbix.com/trunk@3909 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/items.php')
| -rw-r--r-- | frontends/php/items.php | 17 |
1 files changed, 7 insertions, 10 deletions
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); |
