summaryrefslogtreecommitdiff
path: root/js/codeq/prolog.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/codeq/prolog.js')
-rw-r--r--js/codeq/prolog.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/js/codeq/prolog.js b/js/codeq/prolog.js
index 1be339f..7da12e2 100644
--- a/js/codeq/prolog.js
+++ b/js/codeq/prolog.js
@@ -177,10 +177,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
}),
activityHandler = codeq.makeActivityHandler(editor, problemDef.id),
terminal = makePrologTerminalHandler(jqTerminal, editor, problemDef.id, activityHandler),
- hinter = codeq.makeHinter(jqHints, jqEditor, editor, 'prolog_hints', problemDef, commonDef, activityHandler),
- commError = function (error) {
- alert(error);
- };
+ hinter = codeq.makeHinter(jqHints, jqEditor, editor, 'prolog_hints', problemDef, commonDef, activityHandler);
codeq.template.processDictionary(problemDef.translations.description,
[problemDef.language, problemDef.group, problemDef.problem]);
@@ -241,7 +238,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
terminal.append(data.message + '\n', 'error');
}
})
- .fail(commError)
+ .fail(alert)
.fin(function () {
editor.setOption('readOnly', false);
$(editor.getWrapperElement()).removeClass('disabled');