Javascript ammendments, dio_ on Windows.

Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
This commit is contained in:
8n-tech 2015-04-21 01:39:44 +10:00 committed by czaks
parent 6b04b3c671
commit e64b01b690
5 changed files with 72 additions and 57 deletions

View file

@ -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');
});