nextcloud/apps/federatedfilesharing/js/settings-personal.js

24 lines
683 B
JavaScript
Raw Normal View History

$(document).ready(function() {
2015-06-17 14:40:46 +03:00
$('#fileSharingSettings button.pop-up').click(function() {
var url = $(this).data('url');
if (url) {
var width = 600;
var height = 400;
var left = (screen.width/2)-(width/2);
var top = (screen.height/2)-(height/2);
window.open(url, 'name', 'width=' + width + ', height=' + height + ', top=' + top + ', left=' + left);
}
});
2015-09-03 12:28:14 +03:00
$('#oca-files-sharing-add-to-your-website').click(function() {
2016-08-09 13:21:10 +03:00
if ($('#oca-files-sharing-add-to-your-website-expanded').is(':visible')) {
$('#oca-files-sharing-add-to-your-website-expanded').slideUp();
} else {
$('#oca-files-sharing-add-to-your-website-expanded').slideDown();
}
2015-09-03 12:28:14 +03:00
});
});