Re-added the checkbox for multiple deletion of items in a visualmap into a metaconsole. TICKET: #2135

This commit is contained in:
mdtrooper 2015-07-08 17:01:20 +02:00
parent f02abea556
commit b3a619d0ea
1 changed files with 5 additions and 9 deletions

View File

@ -297,12 +297,6 @@ foreach ($layoutDatas as $layoutData) {
"action=delete&" .
"id_visual_console=" . $visualConsole["id"] . "&" .
"id_element=" . $idLayoutData;
$table->data[$i + 1][5] = "";
$table->data[$i + 1][5] .= html_print_checkbox('multiple_delete_items', $idLayoutData, false, true);
$table->data[$i + 1][5] .= '<a href="' . $url_delete . '" ' .
'onclick="javascript: if (!confirm(\'' . __('Are you sure?') . '\')) return false;">' .
html_print_image('images/cross.png', true) . '</a>';
}
else {
$url_delete = "index.php?" .
@ -316,11 +310,13 @@ foreach ($layoutDatas as $layoutData) {
"id_visual_console=" . $visualConsole["id"] . "&" .
"id_element=" . $idLayoutData;
$table->data[$i + 1][5] = '<a href="' . $url_delete . '" ' .
'onclick="javascript: if (!confirm(\'' . __('Are you sure?') . '\')) return false;">' .
html_print_image('images/cross.png', true) . '</a>';
}
$table->data[$i + 1][5] = "";
$table->data[$i + 1][5] .= html_print_checkbox('multiple_delete_items', $idLayoutData, false, true);
$table->data[$i + 1][5] .= '<a href="' . $url_delete . '" ' .
'onclick="javascript: if (!confirm(\'' . __('Are you sure?') . '\')) return false;">' .
html_print_image('images/cross.png', true) . '</a>';
//Second row
$table->data[$i + 2]['icon'] = '';