From 9cd2ef6e8aba8dc76d530a1e420e33910463798e Mon Sep 17 00:00:00 2001
From: Morris Jobke <hey@morrisjobke.de>
Date: Fri, 4 Mar 2016 18:11:42 +0100
Subject: 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
---
 core/js/sharedialoglinkshareview.js | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'core/js')

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);
-- 
cgit v1.2.3