Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #7235 from SAPlayer/inline-timing-function-editor-…
Browse files Browse the repository at this point in the history
…hint-animation-fix

Fix issue with invalid hint hiding after code was changed
  • Loading branch information
redmunds committed Mar 19, 2014
2 parents 7d34cf7 + d24d291 commit 7e3c330
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/

/*jslint vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 4, maxerr: 50 */
/*global define, brackets */
/*global define, brackets, $ */

/**
* Utilities functions related to color matching
Expand Down Expand Up @@ -258,15 +258,18 @@ define(function (require, exports, module) {
return;
}

$(editor.hint[0]).removeClass("fadeout");
if (show) {
editor.hintShown = true;
editor.hint.html(StringUtils.format(Strings.INLINE_TIMING_EDITOR_INVALID, documentCode, editorCode));
editor.hint.css("display", "block");
} else if (editor.hintShown) {
editor.hintShown = false;
AnimationUtils.animateUsingClass(editor.hint[0], "fadeout")
.done(function () {
editor.hint.css("display", "none");
editor.hintShown = false;
if (!editor.hintShown) {
editor.hint.css("display", "none");
}
});
} else {
editor.hint.css("display", "none");
Expand Down

0 comments on commit 7e3c330

Please sign in to comment.