From fff501bb58bb004c745e193655c035492ce2c24f Mon Sep 17 00:00:00 2001 From: Emupedia Date: Sat, 15 Sep 2018 19:42:03 +0300 Subject: [PATCH] More work --- beta/emuos/js/main.js | 70 ++++++++++++++++++++++--------------------- 1 file changed, 36 insertions(+), 34 deletions(-) diff --git a/beta/emuos/js/main.js b/beta/emuos/js/main.js index 601bf809..1e66b4ae 100644 --- a/beta/emuos/js/main.js +++ b/beta/emuos/js/main.js @@ -74,42 +74,44 @@ $(this).addClass('selected'); }); - $(document).contextmenu({ - delegate: '.emuos-taskbar-window-copy', - menu: [{ - title: 'Refresh', - cmd: 'refresh', - uiIcon: 'ui-icon-copy' - } , { - title: '----' - } , { - title: 'Themes', - children: [{ - title: 'Windows 3.1/3.11', - cmd: 'win311', - uiIcon: 'ui-icon-scissors' + setTimeout(function() { + $(document).contextmenu({ + delegate: '.emuos-taskbar-window-copy', + menu: [{ + title: 'Refresh', + cmd: 'refresh', + uiIcon: 'ui-icon-copy' } , { - title: 'Windows 95/98/Me', - cmd: 'win98', - uiIcon: 'ui-icon-clipboard' - }] - }], - select: function(e, ui) { - switch (ui.cmd) { - case 'refresh': - window.location = window.location; - break; - case 'win311': - $('body').removeClass('theme-win98').addClass('theme-win311'); - break; - case 'win98': - $('body').removeClass('theme-win311').addClass('theme-win98'); - break; - } + title: '----' + } , { + title: 'Themes', + children: [{ + title: 'Windows 3.1/3.11', + cmd: 'win311', + uiIcon: 'ui-icon-scissors' + } , { + title: 'Windows 95/98/Me', + cmd: 'win98', + uiIcon: 'ui-icon-clipboard' + }] + }], + select: function(e, ui) { + switch (ui.cmd) { + case 'refresh': + window.location = window.location; + break; + case 'win311': + $('body').removeClass('theme-win98').addClass('theme-win311'); + break; + case 'win98': + $('body').removeClass('theme-win311').addClass('theme-win98'); + break; + } - return true; - } - }); + return true; + } + }); + }, 100); });