diff options
author | Damien Churchill <damoxc@gmail.com> | 2011-10-29 04:35:33 +0100 |
---|---|---|
committer | Damien Churchill <damoxc@gmail.com> | 2011-10-29 04:35:33 +0100 |
commit | 717e66b836e6938e14ad964fee5396a0118ad493 (patch) | |
tree | b44cb69c59da2badf47548e986d517e11d3684bf /deluge/ui/web/js/deluge-all/StatusbarMenu.js | |
parent | fea0b41425d55b95564de5b95813ddc9594b9917 (diff) | |
download | deluge-717e66b836e6938e14ad964fee5396a0118ad493.tar.gz deluge-717e66b836e6938e14ad964fee5396a0118ad493.tar.bz2 deluge-717e66b836e6938e14ad964fee5396a0118ad493.zip |
web: big update for ext4.0.7 compatibility
Lots of changes here:
* Switched to using Ext.create over new Object()
* Add torrent window is now half working
* Begin the makings of DnD add torrent file
Diffstat (limited to 'deluge/ui/web/js/deluge-all/StatusbarMenu.js')
-rw-r--r-- | deluge/ui/web/js/deluge-all/StatusbarMenu.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/deluge/ui/web/js/deluge-all/StatusbarMenu.js b/deluge/ui/web/js/deluge-all/StatusbarMenu.js index 939318ade..bf4a59093 100644 --- a/deluge/ui/web/js/deluge-all/StatusbarMenu.js +++ b/deluge/ui/web/js/deluge-all/StatusbarMenu.js @@ -1,6 +1,6 @@ /*! * Deluge.StatusbarMenu.js - * + * * Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com> * * This program is free software; you can redistribute it and/or modify @@ -37,10 +37,10 @@ Ext.ns('Deluge'); * @extends Ext.menu.Menu */ Deluge.StatusbarMenu = Ext.extend(Ext.menu.Menu, { - + initComponent: function() { Deluge.StatusbarMenu.superclass.initComponent.call(this); - this.otherWin = new Deluge.OtherLimitWindow(this.initialConfig.otherWin || {}); + this.otherWin = Ext.create('Deluge.OtherLimitWindow', this.initialConfig.otherWin || {}); this.items.each(function(item) { if (item.getXType() != 'menucheckitem') return; @@ -51,7 +51,7 @@ Deluge.StatusbarMenu = Ext.extend(Ext.menu.Menu, { } }, this); }, - + setValue: function(value) { var beenSet = false; // set the new value @@ -67,12 +67,12 @@ Deluge.StatusbarMenu = Ext.extend(Ext.menu.Menu, { beenSet = true; } else { item.setChecked(false); - } + } item.resumeEvents(); - } + } if (item.value == 'other') other = item; - }); + }); if (beenSet) return; |