Browse Source

Value -1 for quality counts as not selected

pull/2238/merge
Ruud 9 years ago
parent
commit
42dcd35689
  1. 2
      couchpotato/core/plugins/profile/static/profile.js
  2. 2
      couchpotato/static/scripts/combined.plugins.min.js
  3. 2
      couchpotato/static/scripts/couchpotato.js

2
couchpotato/core/plugins/profile/static/profile.js

@ -140,7 +140,7 @@ var Profile = new Class({
};
Array.each(self.type_container.getElements('.type'), function(type){
if(!type.hasClass('deleted') && type.getElement('select').get('value') != -1)
if(!type.hasClass('deleted') && type.getElement('select').get('value') != -1 && type.getElement('select').get('value') != "")
data.types.include({
'quality': type.getElement('select').get('value'),
'finish': +type.getElement('input.finish[type=checkbox]').checked,

2
couchpotato/static/scripts/combined.plugins.min.js

@ -3223,7 +3223,7 @@ var Profile = new Class({
types: []
};
Array.each(self.type_container.getElements(".type"), function(type) {
if (!type.hasClass("deleted") && type.getElement("select").get("value") != -1) data.types.include({
if (!type.hasClass("deleted") && type.getElement("select").get("value") != -1 && type.getElement("select").get("value") != "") data.types.include({
quality: type.getElement("select").get("value"),
finish: +type.getElement("input.finish[type=checkbox]").checked,
"3d": +type.getElement("input.3d[type=checkbox]").checked

2
couchpotato/static/scripts/couchpotato.js

@ -182,7 +182,7 @@
'click': self.checkForUpdate.bind(self, null)
}
}));
};
}
setting_links.each(function(a){
self.block.more.addLink(a);

Loading…
Cancel
Save