summaryrefslogtreecommitdiff
path: root/js/post-menu.js
diff options
context:
space:
mode:
author8n-tech <8n-tech@users.noreply.github.com>2015-04-21 01:39:44 +1000
committerczaks <marcin@6irc.net>2016-05-05 13:22:11 +0200
commite64b01b6903c5b1f1498627db919a50c4e0ff88c (patch)
treef71fe38fe07666f5dcaa75d1ae89a246a0d37c6f /js/post-menu.js
parent6b04b3c671fdcaa85be97c14336219217b193cc5 (diff)
Javascript ammendments, dio_ on Windows.
Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
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');
});