summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-03-04 18:11:42 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-03-08 09:06:12 +0100
commit9cd2ef6e8aba8dc76d530a1e420e33910463798e (patch)
tree23560837fc42ccf1461f049eee7cd674a15dcf19 /core/js
parentc51ae5f8ee26c2d1440ed64eee9c48bfd6987e2d (diff)
downloadnextcloud-server-9cd2ef6e8aba8dc76d530a1e420e33910463798e.tar.gz
nextcloud-server-9cd2ef6e8aba8dc76d530a1e420e33910463798e.zip
Update error text for link passwords
* this removes the old tooltip first before showing the new one to update the text - otherwise the old text will be shown
Diffstat (limited to 'core/js')
-rw-r--r--core/js/sharedialoglinkshareview.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js
index 452599fb7f2..cfe7402c44b 100644
--- a/core/js/sharedialoglinkshareview.js
+++ b/core/js/sharedialoglinkshareview.js
@@ -192,6 +192,8 @@
this.model.setPassword(password);
this.model.saveLinkShare({}, {
error: function(model, msg) {
+ // destroy old tooltips
+ $input.tooltip('destroy');
$loading.removeClass('inlineblock').addClass('hidden');
$input.addClass('error');
$input.attr('title', msg);