Commit c05f7135 authored by fettesvieh's avatar fettesvieh

bug fixes

parent 4c8dd205
......@@ -5,7 +5,7 @@ jQuery(function($) {
$('form .acp-table').after('<' + 'div class="mark-entries"><' + 'a href="javascript:mark_entries(\'{$checkbox_name}\',\'add\')">{lang values="common|mark_all"}<' + '/a> <' + 'span>::<' + '/span> <' + 'a href="javascript:mark_entries(\'{$checkbox_name}\',\'remove\')">{lang values="common|unmark_all"}<' + '/a><' + '/div>');
{literal}
$('form #adm-list input[type=image]').click(function() {
var entries = $('form input:checkbox:checked') || [];
var entries = $('form .acp-table input:checkbox:checked') || [];
var ary = '';
jQuery.each(entries, function() {
......@@ -29,7 +29,7 @@ jQuery(function($) {
$(this).dialog('close');
},
{/literal}{lang values="common|yes"}{literal}: function() {
location.href = $('form').attr('action') + 'entries_' + ary.substr(0, ary.length - 1) + '/confirmed_1/';
location.href = $('.acp-table').parent('form').attr('action') + 'entries_' + ary.substr(0, ary.length - 1) + '/confirmed_1/';
}
}
});
......
......@@ -26,8 +26,8 @@ if (!isset($entries)) {
foreach ($marked_entries as $entry) {
if (!empty($entry) && validate::isNumber($entry) && $db->countRows('*', 'static_pages', 'id = \'' . $entry . '\'') == '1') {
$bool = $db->delete('static_pages', 'id = \'' . $entry . '\'');
$page = $db->select('id', 'static_pages', 'uri = \'static_pages/list/id_' . $entry . '/\'');
deleteNode($pages[0]['id']);
$page = $db->select('id', 'menu_items', 'uri = \'static_pages/list/id_' . $entry . '/\'');
deleteNode($page[0]['id']);
}
}
setMenuItemsCache();
......
......@@ -16,17 +16,17 @@
<item>
<file>create</file>
<level>2</level>
<include>pages/functions</include>
<include>menu_items/functions</include>
</item>
<item>
<file>delete</file>
<level>2</level>
<include>pages/functions</include>
<include>menu_items/functions</include>
</item>
<item>
<file>edit</file>
<level>2</level>
<include>pages/functions</include>
<include>menu_items/functions</include>
</item>
<item>
<file>extensions/search</file>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment