From 8123099f8655981e3f7984830fe8ca0154b7278e Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 1 Mar 2016 15:30:27 +0100 Subject: Clear hints immediately when pressing Plan or Test --- js/codeq/robot.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/codeq/robot.js') diff --git a/js/codeq/robot.js b/js/codeq/robot.js index 3e561a1..7bda8ec 100644 --- a/js/codeq/robot.js +++ b/js/codeq/robot.js @@ -161,11 +161,13 @@ along with this program. If not, see . */ }); jqBtnPlan.on('click', function () { + hinter.clear(); if (!hinter.planNext()) { jqBtnPlan.prop('disabled', true).blur(); } }); jqBtnHint.on('click', function () { + hinter.clear(); $(editor.getWrapperElement()).addClass('disabled'); editor.setOption('readOnly', 'nocursor'); jqBtnHint.ladda('start'); -- cgit v1.2.1