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,9 +253,12 @@ pandora.ui.filesView = function(options, self) {
|
|||
},
|
||||
select: selectFiles,
|
||||
submit: function(data) {
|
||||
var value = self.$filesList.value(data.id, data.key);
|
||||
if (data.value != value && !(data.value === '' && value === null)) {
|
||||
self.$saveButton.options({disabled: false});
|
||||
self.$filesList.value(data.id, data.key, data.value || null);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
self.$instancesList = Ox.TableList({
|
||||
|
|
Loading…
Reference in a new issue