aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/js/settings-personal.js
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2016-04-18 18:17:08 +0200
committerBjörn Schießle <schiessle@owncloud.com>2016-04-22 14:55:40 +0200
commite10105474fbef8940fdfa96d5e2bf2f09b1f0649 (patch)
tree1881e059a3408a2d4e8096e31719ba989f7dfab1 /apps/federatedfilesharing/js/settings-personal.js
parent606b756a94643eaae87e18b39f6c75e6d18fec7e (diff)
downloadnextcloud-server-e10105474fbef8940fdfa96d5e2bf2f09b1f0649.tar.gz
nextcloud-server-e10105474fbef8940fdfa96d5e2bf2f09b1f0649.zip
move federated sharing settings to the federatedfilesharing app
Diffstat (limited to 'apps/federatedfilesharing/js/settings-personal.js')
-rw-r--r--apps/federatedfilesharing/js/settings-personal.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/apps/federatedfilesharing/js/settings-personal.js b/apps/federatedfilesharing/js/settings-personal.js
new file mode 100644
index 00000000000..14a9b7bbfa7
--- /dev/null
+++ b/apps/federatedfilesharing/js/settings-personal.js
@@ -0,0 +1,19 @@
+$(document).ready(function() {
+
+ $('#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);
+ }
+ });
+
+ $('#oca-files-sharing-add-to-your-website').click(function() {
+ $('#oca-files-sharing-add-to-your-website-expanded').slideDown();
+ });
+
+});