Update image icons in left list when icon changes.

This commit is contained in:
Oskar Wiksten
2012-07-10 19:28:00 +02:00
parent d7064fd589
commit cbcf97252f
3 changed files with 17 additions and 9 deletions

View File

@@ -59,7 +59,9 @@ function applyEditorBindingsForObject(div, obj) {
function applyCommonEditorBindings(div, obj, dataStore) {
applyEditorBindingsForObject(div, obj);
if (dataStore) {
div.find("#" + dataStore.nameField).change(function() { dataStore.onNameChanged(obj, $(this).val()); });
div.find("input").change(function() {
dataStore.onPropertyChanged(obj, $(this).attr('id'), $(this).val());
});
}
}