mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
merge changes into trunk
This commit is contained in:
parent
9c491c13cc
commit
3f1d769ffc
1 changed files with 7 additions and 1 deletions
|
@ -75,7 +75,13 @@ Deluge.MultiOptionsManager = Ext.extend(Deluge.OptionsManager, {
|
|||
*/
|
||||
get: function() {
|
||||
var id = arguments[0];
|
||||
if (arguments.length == 2) {
|
||||
if (arguments.length == 1) {
|
||||
var options = {};
|
||||
for (var option in this.options) {
|
||||
options[option] = (this.isDirty(id, option)) ? this.changed[id][option] : this.getDefault(id, option);
|
||||
}
|
||||
return options;
|
||||
} else if (arguments.length == 2) {
|
||||
var option = arguments[1];
|
||||
return (this.isDirty(id, option)) ? this.changed[id][option] : this.getDefault(id, option);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue