Added latest compiled JS files

This commit is contained in:
Andy Heathershaw 2017-09-12 21:47:07 +01:00
parent 69a7a4e0ab
commit a1aeb6b9ef
2 changed files with 30 additions and 1 deletions

View File

@ -22576,6 +22576,35 @@ function EditPhotosViewModel(album_id, language, urls) {
e.preventDefault(); e.preventDefault();
return false; return false;
}, },
replacePhoto: function (e) {
var self = this;
this.selectPhotoSingle(e.target);
var parent = $(e.target).closest('.photo');
bootbox.dialog({
message: $('<p/>').html(language.replace_image_message).prop('outerHTML') +
$('#replace-image-form').clone().removeAttr('style').attr('id', 'replace-image-form-visible').prop('outerHTML'),
title: language.replace_image_title,
buttons: {
cancel: {
label: language.action_cancel,
className: 'btn-secondary'
},
confirm: {
label: language.action_continue,
className: 'btn-success',
callback: function () {
$('input[name="photo_id"]', '#replace-image-form-visible').val(self.photoIDs[0]);
$('#replace-image-form-visible').submit();
}
}
}
});
e.preventDefault();
return false;
},
rotate: function (angle, parent) { rotate: function (angle, parent) {
var url = urls.rotate_photo; var url = urls.rotate_photo;
url = url.replace('/0/', '/' + this.photoIDs[0] + '/'); url = url.replace('/0/', '/' + this.photoIDs[0] + '/');

File diff suppressed because one or more lines are too long