diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-07-21 11:29:08 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-07-21 11:29:08 +0200 |
commit | f71d0fa816c40ffee4793a2f71eed2924a177567 (patch) | |
tree | 7b00286630ced96cfc8e4f3271b70e5977d8a7ec /pyload/web | |
parent | converted AllDebrid plugin (diff) | |
download | pyload-f71d0fa816c40ffee4793a2f71eed2924a177567.tar.xz |
fixed saving configs
Diffstat (limited to 'pyload/web')
-rw-r--r-- | pyload/web/app/scripts/models/ConfigHolder.js | 4 | ||||
-rw-r--r-- | pyload/web/app/scripts/models/ConfigItem.js | 1 | ||||
-rw-r--r-- | pyload/web/app/templates/default/settings/config.html | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/pyload/web/app/scripts/models/ConfigHolder.js b/pyload/web/app/scripts/models/ConfigHolder.js index 40efbc7c0..638b2d644 100644 --- a/pyload/web/app/scripts/models/ConfigHolder.js +++ b/pyload/web/app/scripts/models/ConfigHolder.js @@ -8,7 +8,7 @@ define(['jquery', 'backbone', 'underscore', 'app', './ConfigItem'], name: '', label: '', description: '', - long_description: null, + explanation: null, // simple list but no collection items: null, info: null @@ -52,7 +52,7 @@ define(['jquery', 'backbone', 'underscore', 'app', './ConfigItem'], }, isLoaded: function() { - return this.has('items') || this.has('long_description'); + return this.has('items') || this.has('explanation'); }, // check if any of the items has changes diff --git a/pyload/web/app/scripts/models/ConfigItem.js b/pyload/web/app/scripts/models/ConfigItem.js index 2d325c2a2..ecb44cbbc 100644 --- a/pyload/web/app/scripts/models/ConfigItem.js +++ b/pyload/web/app/scripts/models/ConfigItem.js @@ -9,7 +9,6 @@ define(['jquery', 'backbone', 'underscore', 'app', 'utils/apitypes'], label: '', description: '', input: null, - default_value: null, value: null, // additional attributes inputView: null diff --git a/pyload/web/app/templates/default/settings/config.html b/pyload/web/app/templates/default/settings/config.html index 47ff45f0b..fb7b0e727 100644 --- a/pyload/web/app/templates/default/settings/config.html +++ b/pyload/web/app/templates/default/settings/config.html @@ -2,8 +2,8 @@ <div class="page-header"> <h1>{{ label }} <small>{{ description }}</small> - {{#if long_description }} - <a class="btn btn-small" data-title="Help" data-content="{{ long_description }}"><i + {{#if explanation }} + <a class="btn btn-small" data-title="Help" data-content="{{ explanation }}"><i class="icon-question-sign"></i></a> {{/if}} </h1> |