summaryrefslogtreecommitdiff
path: root/js/codeq/comms.js
diff options
context:
space:
mode:
authorAleš Smodiš <aless@guru.si>2015-09-24 14:31:13 +0200
committerAleš Smodiš <aless@guru.si>2015-09-24 14:31:13 +0200
commit3184e7f201af05429bedb4fb8a6300e024946c2a (patch)
treee660f5b50fd56cb7ac51deb32d8ab4a8f98552e3 /js/codeq/comms.js
parent652164680ac0d1b4ace0ae9ec55f69b28740d11a (diff)
Implemented: CodeQ event queue, basic translation infrastructure, reimplemented problem index from JSON data.
Diffstat (limited to 'js/codeq/comms.js')
-rw-r--r--js/codeq/comms.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/codeq/comms.js b/js/codeq/comms.js
index f9e49ae..2d934bd 100644
--- a/js/codeq/comms.js
+++ b/js/codeq/comms.js
@@ -169,7 +169,7 @@
ajaxGet = function (url) {
return Q.Promise(function (resolve, reject, notify) {
$.ajax({
- dataType: 'application/json',
+ dataType: 'json',
type: 'GET',
url: url,
error: function (jqXHR, textStatus, errorThrown) {
@@ -206,6 +206,7 @@
ajaxPrefix[ajaxPrefix.length - 1] = '';
ajaxPrefix = ajaxPrefix.join('/');
}
+ ajaxPrefix = ajaxPrefix + 'data/';
// ================================================================================
// This module's API methods