SAAS-940: Provide usability hints to user

fix hint message transitions
This commit is contained in:
drigato 2015-07-14 11:51:50 -04:00
parent 2de831a37f
commit e5c574229f
1 changed files with 4 additions and 4 deletions

View File

@ -172,12 +172,12 @@ function getUsabilityHint() {
$hint_div.hide(); $hint_div.hide();
} else if (current_hint !== json) { } else if (current_hint !== json) {
// we only change the message if it is new // we only change the message if it is new
if ($hint_div.is(":hidden")) { if ($hint_div.is(":visible")) {
$hint_div.show(); $hint_div.hide();
} }
$hint_div.slideUp("slow");
$hint_div.html(json); $hint_div.html(json);
$hint_div.slideDown("slow"); $hint_div.show("slow");
} else { } else {
// hint is the same before we hid it so we just need to show it // hint is the same before we hid it so we just need to show it
if ($hint_div.is(":hidden")) { if ($hint_div.is(":hidden")) {