]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix "Copied" message for public links 4638/head
authorMorris Jobke <hey@morrisjobke.de>
Mon, 1 May 2017 20:56:38 +0000 (17:56 -0300)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 1 May 2017 20:58:12 +0000 (17:58 -0300)
* share a file/fodler by public link and click the
  copy to clipboard icon and watch the tooltip
* before: it said "Copy"
* after: it now says "Copied" after clicking the button

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
core/js/sharedialoglinkshareview.js

index 9368982d916f234a42a79c3bf97719b7e3c1a848..6b32484ab8e5f8b0a5bd96b4655f1ed97f7c6fb9 100644 (file)
 
                        var clipboard = new Clipboard('.clipboardButton');
                        clipboard.on('success', function(e) {
-                               event.preventDefault();
-                               event.stopPropagation();
-
                                var $input = $(e.trigger);
                                $input.tooltip('hide')
                                        .attr('data-original-title', t('core', 'Copied!'))