Fix menu brokenness if user post deletion disabled
This commit is contained in:
parent
e64b01b690
commit
7cf3fccda5
@ -10,9 +10,9 @@
|
||||
|
||||
if (active_page == 'thread' || active_page == 'index') {
|
||||
$(document).on('menu_ready', function(){
|
||||
var Menu = window.Menu;
|
||||
|
||||
if ($('#delete-fields #password').length) {
|
||||
var Menu = window.Menu;
|
||||
Menu.add_item("delete_post_menu", _("Delete post"));
|
||||
Menu.add_item("delete_file_menu", _("Delete file"));
|
||||
Menu.onclick(function(e, $buf) {
|
||||
|
Loading…
Reference in New Issue
Block a user