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
This commit is contained in:
Morris Jobke 2016-03-04 18:11:42 +01:00
parent 9232a124e2
commit 859303164e
1 changed files with 2 additions and 0 deletions

View File

@ -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);