Commit 453d623b by ichuang

use mitx content-qa central server for staff_problem_info

parent da64c8f0
...@@ -75,12 +75,13 @@ function sendlog_${element_id}(){ ...@@ -75,12 +75,13 @@ function sendlog_${element_id}(){
entry: $('#${element_id}_xqa_entry').val()}; entry: $('#${element_id}_xqa_entry').val()};
$.ajax({ $.ajax({
url: 'http://zion.ike.net:9001/log', url: 'http://xqa:server@content-qa.mitx.mit.edu/log',
type: 'GET', type: 'GET',
contentType: 'application/json', contentType: 'application/json',
data: JSON.stringify(xqaLog), data: JSON.stringify(xqaLog),
crossDomain: true, crossDomain: true,
dataType: 'jsonp', dataType: 'jsonp',
beforeSend: function (xhr) { xhr.setRequestHeader ("Authorization", "Basic eHFhOmFnYXJ3YWw="); },
timeout : 1000, timeout : 1000,
success: function(result) { success: function(result) {
$('#${element_id}_xqa_log_data').html(result); $('#${element_id}_xqa_log_data').html(result);
...@@ -100,7 +101,7 @@ var xqaQuery = {authkey: '${xqa_key}', ...@@ -100,7 +101,7 @@ var xqaQuery = {authkey: '${xqa_key}',
format: 'html'}; format: 'html'};
$.ajax({ $.ajax({
url: 'http://zion.ike.net:9001/query', url: 'http://xqa:server@content-qa.mitx.mit.edu/query',
type: 'GET', type: 'GET',
contentType: 'application/json', contentType: 'application/json',
data: JSON.stringify(xqaQuery), data: JSON.stringify(xqaQuery),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment