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

Commit 7e3c330

Browse files
committed
Merge pull request #7235 from SAPlayer/inline-timing-function-editor-hint-animation-fix
Fix issue with invalid hint hiding after code was changed
2 parents 7d34cf7 + d24d291 commit 7e3c330

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/extensions/default/InlineTimingFunctionEditor/TimingFunctionUtils.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323

2424
/*jslint vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 4, maxerr: 50 */
25-
/*global define, brackets */
25+
/*global define, brackets, $ */
2626

2727
/**
2828
* Utilities functions related to color matching
@@ -258,15 +258,18 @@ define(function (require, exports, module) {
258258
return;
259259
}
260260

261+
$(editor.hint[0]).removeClass("fadeout");
261262
if (show) {
262263
editor.hintShown = true;
263264
editor.hint.html(StringUtils.format(Strings.INLINE_TIMING_EDITOR_INVALID, documentCode, editorCode));
264265
editor.hint.css("display", "block");
265266
} else if (editor.hintShown) {
267+
editor.hintShown = false;
266268
AnimationUtils.animateUsingClass(editor.hint[0], "fadeout")
267269
.done(function () {
268-
editor.hint.css("display", "none");
269-
editor.hintShown = false;
270+
if (!editor.hintShown) {
271+
editor.hint.css("display", "none");
272+
}
270273
});
271274
} else {
272275
editor.hint.css("display", "none");

0 commit comments

Comments
 (0)