From d24d2916e2a10f924d09420f53ce5406a50a8c76 Mon Sep 17 00:00:00 2001 From: Marcel Gerber Date: Tue, 18 Mar 2014 17:19:26 +0100 Subject: [PATCH] Fix issue with invalid hint hiding after code was changed --- .../InlineTimingFunctionEditor/TimingFunctionUtils.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/extensions/default/InlineTimingFunctionEditor/TimingFunctionUtils.js b/src/extensions/default/InlineTimingFunctionEditor/TimingFunctionUtils.js index 19831570fd6..ead59264947 100644 --- a/src/extensions/default/InlineTimingFunctionEditor/TimingFunctionUtils.js +++ b/src/extensions/default/InlineTimingFunctionEditor/TimingFunctionUtils.js @@ -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 @@ -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");