Don't save empty quality in profile
This commit is contained in:
1 parent
fece16c700
commit
c231c62417
1 file changed
+1
-1
@@ -106,7 +106,7 @@ var Profile = new Class({
|
|||||||
}
|
}
|
||||||
|
|
||||||
Array.each(self.type_container.getElements('.type'), function(type){
|
Array.each(self.type_container.getElements('.type'), function(type){
|
||||||
if(!type.hasClass('deleted'))
|
if(!type.hasClass('deleted') && type.getElement('select').get('value') > 0)
|
||||||
data.types.include({
|
data.types.include({
|
||||||
'quality_id': type.getElement('select').get('value'),
|
'quality_id': type.getElement('select').get('value'),
|
||||||
'finish': +type.getElement('input[type=checkbox]').checked
|
'finish': +type.getElement('input[type=checkbox]').checked
|
||||||
|
|||||||
Reference in new issue
Block a user