Changeset 994
- Timestamp:
- 2008-07-29 12:22:30 (3 months ago)
- Files:
-
- sandbox/serverswitcher/chrome/content/manager.js (modified) (4 diffs)
- sandbox/serverswitcher/chrome/content/paneServerSwitcher.js (modified) (1 diff)
- sandbox/serverswitcher/install.rdf (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/serverswitcher/chrome/content/manager.js
r954 r994 55 55 }, 56 56 adjustButton: function() { 57 if (Preferences.get DTA(SSW_PREF_ENABLED, true)) {57 if (Preferences.getExt(SSW_PREF_ENABLED, true)) { 58 58 $('toolssw').removeAttribute('off'); 59 59 } … … 63 63 }, 64 64 toggle: function() { 65 Preferences.set DTA(SSW_PREF_ENABLED, !Preferences.getDTA(SSW_PREF_ENABLED, true));65 Preferences.setExt(SSW_PREF_ENABLED, !Preferences.getDTA(SSW_PREF_ENABLED, true)); 66 66 this.adjustButton(); 67 67 }, … … 70 70 this._limits = {}; 71 71 let c = {}; 72 let limits = Preferences._pref.getChildList(SSW_PREF_LIMITS, c); 72 let limits = Cc['@mozilla.org/preferences-service;1'] 73 .getService(Ci.nsIPrefBranch) 74 .getChildList(SSW_PREF_LIMITS, c); 73 75 74 76 for (let i = 0; i < c.value; ++i) { … … 89 91 /*Dialog.*/startNext: function() { 90 92 try { 91 if (!Preferences.get DTA(SSW_PREF_ENABLED, true)) {93 if (!Preferences.getExt(SSW_PREF_ENABLED, true)) { 92 94 return SSW.origStartNext.apply(Dialog); 93 95 } sandbox/serverswitcher/chrome/content/paneServerSwitcher.js
r955 r994 54 54 this._limits = []; 55 55 let c = {}; 56 let limits = Preferences._pref.getChildList(SSW_PREF_LIMITS, c); 56 let limits = Cc['@mozilla.org/preferences-service;1'] 57 .getService(Ci.nsIPrefBranch) 58 .getChildList(SSW_PREF_LIMITS, c); 57 59 limits.sort(); 58 60 sandbox/serverswitcher/install.rdf
r957 r994 6 6 <name>DownThemAll! ServerSwitcher</name> 7 7 <description>Processes the queue trying to use different servers where possible</description> 8 <version>0.5 </version>8 <version>0.5.1</version> 9 9 10 10 <creator>Nils Maier</creator> … … 18 18 <rdf:Description> 19 19 <id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</id> 20 <minVersion> 2.0.0.8</minVersion>21 <maxVersion>3.0 pre</maxVersion>20 <minVersion>3.0</minVersion> 21 <maxVersion>3.0.*</maxVersion> 22 22 </rdf:Description> 23 23 </targetApplication> … … 36 36 <rdf:Description> 37 37 <id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</id> 38 <minVersion> 2.0.0.0</minVersion>39 <maxVersion>3.0 a1</maxVersion>38 <minVersion>3.0a</minVersion> 39 <maxVersion>3.0.*</maxVersion> 40 40 </rdf:Description> 41 41 </targetApplication> … … 45 45 <rdf:Description> 46 46 <id>{a463f10c-3994-11da-9945-000d60ca027b}</id> 47 <minVersion> 1.0</minVersion>48 <maxVersion> 1.0.*</maxVersion>47 <minVersion>2.0b</minVersion> 48 <maxVersion>2.0.*</maxVersion> 49 49 </rdf:Description> 50 50 </targetApplication> … … 53 53 <rdf:Description> 54 54 <id>dta@downthemall.net</id> 55 <minVersion>1. 0</minVersion>56 <maxVersion>1.1 a*</maxVersion>55 <minVersion>1.1a1</minVersion> 56 <maxVersion>1.1.*</maxVersion> 57 57 </rdf:Description> 58 58 </requires>
