summaryrefslogtreecommitdiffstats
path: root/pyload/web
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-21 11:29:08 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-21 11:29:08 +0200
commitf71d0fa816c40ffee4793a2f71eed2924a177567 (patch)
tree7b00286630ced96cfc8e4f3271b70e5977d8a7ec /pyload/web
parentconverted AllDebrid plugin (diff)
downloadpyload-f71d0fa816c40ffee4793a2f71eed2924a177567.tar.xz
fixed saving configs
Diffstat (limited to 'pyload/web')
-rw-r--r--pyload/web/app/scripts/models/ConfigHolder.js4
-rw-r--r--pyload/web/app/scripts/models/ConfigItem.js1
-rw-r--r--pyload/web/app/templates/default/settings/config.html4
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>