summaryrefslogtreecommitdiff
path: root/js/codeq/python.js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-03-31 16:56:19 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-03-31 16:56:19 +0200
commita5a5a276ab60d000fe259858585dc5b71eb372d2 (patch)
treecb06882c7ea8f9ba3f4b436687d5cc5a777261e4 /js/codeq/python.js
parent63f4ef494b32f08ee6709c6040374bb9ed9c5da8 (diff)
Replace window.alert with custom message box
Diffstat (limited to 'js/codeq/python.js')
-rw-r--r--js/codeq/python.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/codeq/python.js b/js/codeq/python.js
index ada3954..3bc7ab5 100644
--- a/js/codeq/python.js
+++ b/js/codeq/python.js
@@ -72,11 +72,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
}),
tcs = function terminalCommandSuccess (data) {
if (data.code !== 0) {
- terminal.append(data.message, 'error');
+ alert(data.message);
}
},
tcf = function terminalCommandFailed (error) {
- terminal.append(error + '\n', 'error');
+ alert(error);
};
terminal.onInput = function (text) {
@@ -170,7 +170,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
hinter.handle(data.hints);
}
else {
- terminal.append('error: ' + data.message);
+ alert(data.message);
}
})
.fail(alert)