diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2015-11-18 19:39:28 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2015-11-18 19:39:28 +0100 |
commit | a184ad0a8a36c94669b6e07c311f4177a38edb63 (patch) | |
tree | 700a7ddfeec039d3fe43bfd6f352d047ffbee935 /js/codeq/robot.js | |
parent | 6893733a646d9e697b85feef39dc047c70dd601c (diff) |
Disable editor while waiting for hint/test results
Diffstat (limited to 'js/codeq/robot.js')
-rw-r--r-- | js/codeq/robot.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/codeq/robot.js b/js/codeq/robot.js index 88e889d..a6748dc 100644 --- a/js/codeq/robot.js +++ b/js/codeq/robot.js @@ -203,6 +203,7 @@ } }); jqBtnHint.on('click', function () { + editor.setOption('readOnly', true); jqBtnHint.ladda('start'); codeq.comms.sendHint({ 'language': 'robot', @@ -220,6 +221,7 @@ }) .fail(commError) .fin(function () { + editor.setOption('readOnly', false); jqBtnHint.ladda('stop'); }) .done(); |