summaryrefslogtreecommitdiff
path: root/js/codeq/python.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/codeq/python.js')
-rw-r--r--js/codeq/python.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/codeq/python.js b/js/codeq/python.js
index 4109b62..302a0fb 100644
--- a/js/codeq/python.js
+++ b/js/codeq/python.js
@@ -167,7 +167,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
// maintain the illusion
var timeout = 500 + Math.random() * 1000;
- editor.setOption('readOnly', true);
+ $(editor.getWrapperElement()).addClass('disabled');
+ editor.setOption('readOnly', 'nocursor');
terminal.inputDisable();
jqBtnTest.ladda('start');
@@ -188,6 +189,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
.fail(commError)
.fin(function () {
editor.setOption('readOnly', false);
+ $(editor.getWrapperElement()).removeClass('disabled');
terminal.inputEnable();
jqBtnTest.ladda('stop');
})