BLUE-8: The OpenStack driver now works completely with all operations - flip, rotate, refresh thumbnails. It's also possible to move photos between albums across different storage providers.
This commit is contained in:
@@ -93,10 +93,16 @@ function EditPhotosViewModel(album_id, language, urls) {
|
||||
self.albums = ko.observableArray();
|
||||
self.bulkModifyMethod = ko.observable();
|
||||
self.photoIDs = ko.observableArray();
|
||||
self.isSubmitting = false;
|
||||
|
||||
/* Called when the Apply button on the "bulk apply selected actions" form is clicked */
|
||||
self.bulkModifySelected = function()
|
||||
{
|
||||
if (self.isSubmitting)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
var bulk_form = $('form#bulk-modify-form');
|
||||
|
||||
if (self.bulkModifyMethod() == 'change_album')
|
||||
@@ -104,8 +110,11 @@ function EditPhotosViewModel(album_id, language, urls) {
|
||||
// Prompt for the new album to move to
|
||||
self.promptForNewAlbum(function(dialog) {
|
||||
var album_id = $('select', dialog).val();
|
||||
$('input[name="new-album-id"]', form).val(album_id);
|
||||
bulk_form.submit();
|
||||
$('input[name="new-album-id"]', bulk_form).val(album_id);
|
||||
|
||||
self.isSubmitting = true;
|
||||
$('button[name="bulk-apply"]', bulk_form).click();
|
||||
_bt_showLoadingModal();
|
||||
});
|
||||
|
||||
return false;
|
||||
@@ -125,7 +134,9 @@ function EditPhotosViewModel(album_id, language, urls) {
|
||||
label: language.action_delete,
|
||||
className: "btn-danger",
|
||||
callback: function() {
|
||||
bulk_form.submit();
|
||||
self.isSubmitting = true;
|
||||
$('button[name="bulk-apply"]', bulk_form).click();
|
||||
_bt_showLoadingModal();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -151,6 +162,7 @@ function EditPhotosViewModel(album_id, language, urls) {
|
||||
{
|
||||
window.location.reload();
|
||||
});
|
||||
_bt_showLoadingModal();
|
||||
});
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user