summaryrefslogtreecommitdiff
path: root/js/post-menu.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/post-menu.js')
-rw-r--r--js/post-menu.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/post-menu.js b/js/post-menu.js
index 7d83709a..6018dfdb 100644
--- a/js/post-menu.js
+++ b/js/post-menu.js
@@ -26,7 +26,7 @@
* $config['additional_javascript'][] = 'js/jquery.min.js';
* $config['additional_javascript'][] = 'js/post-menu.js';
*/
-onready(function () {
+$(document).ready(function () {
var List = function (menuId, text) {
this.id = menuId;
@@ -133,6 +133,8 @@ Menu.get_submenu = function (id) {
return mainMenu.get_submenu(id);
};
+window.Menu = Menu;
+
/* * * * * * * *
Initialize
@@ -205,5 +207,5 @@ $(document).on('new_post', function (e, post) {
addButton(post);
});
-window.Menu = Menu;
+$(document).trigger('menu_ready');
});