files view: only register changes when value has actually changed
This commit is contained in:
parent
e1889397b2
commit
bf1a4102c1
1 changed files with 5 additions and 2 deletions
|
@ -253,8 +253,11 @@ pandora.ui.filesView = function(options, self) {
|
||||||
},
|
},
|
||||||
select: selectFiles,
|
select: selectFiles,
|
||||||
submit: function(data) {
|
submit: function(data) {
|
||||||
self.$saveButton.options({disabled: false});
|
var value = self.$filesList.value(data.id, data.key);
|
||||||
self.$filesList.value(data.id, data.key, data.value || null);
|
if (data.value != value && !(data.value === '' && value === null)) {
|
||||||
|
self.$saveButton.options({disabled: false});
|
||||||
|
self.$filesList.value(data.id, data.key, data.value || null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue