Lock the drag zone if the album is not editable so that users don't

start illegal drags.
This commit is contained in:
Bharat Mediratta
2011-01-06 12:02:01 -08:00
parent fc6907dcfe
commit 600e04b58c
2 changed files with 6 additions and 0 deletions

View File

@@ -53,6 +53,11 @@
thumb_data_view.bindStore(store);
sort_column_combobox.setValue(album_info.sort_column);
sort_order_combobox.setValue(album_info.sort_order);
if (album_info.editable) {
thumb_data_view.dragZone.unlock();
} else {
thumb_data_view.dragZone.lock();
}
},
failure: show_generic_error
});