public/js/admin_console.js in documentcloud-cloud-crowd-0.2.1 vs public/js/admin_console.js in documentcloud-cloud-crowd-0.2.2
- old
+ new
@@ -16,11 +16,11 @@
// Keep this in sync with the map in cloud-crowd.rb
DISPLAY_STATUS_MAP : ['unknown', 'processing', 'succeeded', 'failed', 'splitting', 'merging'],
// Images to preload
- PRELOAD_IMAGES : ['/images/server_error.png'],
+ PRELOAD_IMAGES : ['images/server_error.png'],
// All options for drawing the system graphs.
GRAPH_OPTIONS : {
xaxis : {mode : 'time', timeformat : '%M:%S'},
yaxis : {tickDecimals : 0},
@@ -51,11 +51,11 @@
},
// Request the lastest status of all jobs and workers, re-render or update
// the DOM to reflect.
getStatus : function() {
- $.ajax({url : '/status', dataType : 'json', success : function(resp) {
+ $.ajax({url : 'status', dataType : 'json', success : function(resp) {
Console._jobs = resp.jobs;
Console._nodes = resp.nodes;
Console._workUnitCount = resp.work_unit_count;
Console._workerCount = Console.countWorkers();
Console.recordDataPoint();
@@ -165,10 +165,10 @@
getWorkerInfo : function(e) {
e.stopImmediatePropagation();
var info = Console._workerInfo;
var row = $(this);
info.addClass('loading');
- $.get('/worker/' + row.attr('rel'), null, Console.renderWorkerInfo, 'json');
+ $.get('worker/' + row.attr('rel'), null, Console.renderWorkerInfo, 'json');
info.css({top : row.offset().top, left : 325});
info.fadeIn(Console.ANIMATION_SPEED);
$(document).bind('click', Console.hideWorkerInfo);
return false;
},
\ No newline at end of file