From 49b7fc107aee37286ae59d03a59874c088ef5599 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 4 Mar 2016 18:11:42 +0100 Subject: [PATCH] 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(+) diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js index 5b464ee932..1d158ccec1 100644 --- a/core/js/sharedialoglinkshareview.js +++ b/core/js/sharedialoglinkshareview.js @@ -193,6 +193,8 @@ password: password }, { error: function(model, msg) { + // destroy old tooltips + $input.tooltip('destroy'); $loading.removeClass('inlineblock').addClass('hidden'); $input.addClass('error'); $input.attr('title', msg);