mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
- Ported WebUI to MochaUI 0.9.5
This commit is contained in:
@@ -23,6 +23,12 @@
|
||||
*/
|
||||
|
||||
window.addEvent('domready', function(){
|
||||
MochaUI.Desktop = new MochaUI.Desktop();
|
||||
MochaUI.Desktop.desktop.setStyles({
|
||||
'background': '#fff',
|
||||
'visibility': 'visible'
|
||||
});
|
||||
initializeWindows();
|
||||
// Tabs
|
||||
myTabs1 = new mootabs('myTabs', {
|
||||
width: '100%',
|
||||
@@ -146,6 +152,12 @@ window.addEvent('domready', function(){
|
||||
// ajaxfn.periodical(5000);
|
||||
});
|
||||
|
||||
// This runs when a person leaves your page.
|
||||
|
||||
window.addEvent('unload', function(){
|
||||
if (MochaUI) MochaUI.garbageCleanUp();
|
||||
});
|
||||
|
||||
window.addEvent('keydown', function(event){
|
||||
if (event.key == 'a' && event.control) {
|
||||
event.stop();
|
||||
|
||||
Reference in New Issue
Block a user