From 0c2ebb984e5d3764997a96cad54a40464623aeb7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20M=C3=BCller?= Date: Fri, 5 Jul 2013 15:07:05 +0200 Subject: [PATCH] adding tipsy to the upload button showing the max upload and restoring client side upload size validation --- apps/files_sharing/js/public.js | 2 + apps/files_sharing/templates/public.php | 156 ++++++++++++------------ 2 files changed, 82 insertions(+), 76 deletions(-) diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index 0244f392a0e..294223aa094 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -11,6 +11,8 @@ var form_data; $(document).ready(function() { + $('#data-upload-form').tipsy({gravity:'ne', fade:true}); + if (typeof FileActions !== 'undefined') { var mimetype = $('#mimetype').val(); // Show file preview if previewer is available, images are already handled by the template diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 56ed4ca168e..e8bf80b8720 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -1,5 +1,5 @@
- +
@@ -9,88 +9,92 @@
+ +
-
- - - - -
- -
- -
- -
+
+ + - + +
+ +
+ +
+ +
+ + + - -
-
-

- getLongFooter()); ?> -

-
+
+ -- 2.39.5