Remove save form showing method, since it done by the server

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-04-05 13:14:45 +02:00
parent f53cbb8077
commit 186915b4ea
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
2 changed files with 1 additions and 11 deletions

View File

@ -239,15 +239,6 @@
Gallery.infoBox.showInfo();
},
/**
* Lets the user add the shared files to his cloud
*/
showSaveForm: function () {
$(this).hide();
$('.save-form').css('display', 'inline');
$('#remote_address').focus();
},
/**
* Sends the shared files to the viewer's cloud
*
@ -256,7 +247,7 @@
saveForm: function (event) {
event.preventDefault();
var saveElement = $('#save');
var saveElement = $('#save-external-share');
var remote = $(this).find('input[type="text"]').val();
var owner = saveElement.data('owner');
var name = saveElement.data('name');

View File

@ -375,7 +375,6 @@
$('#album-info-button').click(Gallery.showInfo);
$('#sort-name-button').click(Gallery.sorter);
$('#sort-date-button').click(Gallery.sorter);
$('#save #save-button').click(Gallery.showSaveForm);
$('.save-form').submit(Gallery.saveForm);
this._renderNewButton();
// Trigger cancelling of file upload