summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/js/settings-personal.js
diff options
context:
space:
mode:
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();
+ });
+
+});