forked from leftypol/leftypol
Javascript ammendments, dio_ on Windows.
Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
This commit is contained in:
parent
6b04b3c671
commit
e64b01b690
5 changed files with 72 additions and 57 deletions
|
@ -9,9 +9,10 @@
|
|||
*/
|
||||
|
||||
if (active_page == 'thread' || active_page == 'index') {
|
||||
$(document).ready(function(){
|
||||
|
||||
$(document).on('menu_ready', function(){
|
||||
|
||||
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) {
|
||||
|
@ -57,4 +58,9 @@ $(document).on('new_post', function(){
|
|||
});
|
||||
$('input.delete').hide();
|
||||
$('#post-moderation-fields').hide();
|
||||
})}
|
||||
});
|
||||
|
||||
if (typeof window.Menu !== "undefined") {
|
||||
$(document).trigger('menu_ready');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue