Repository: incubator-blur Updated Branches: refs/heads/master 9fc5afbe0 -> fccde5298
update console js to use new paths Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/e9572388 Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/e9572388 Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/e9572388 Branch: refs/heads/master Commit: e95723889fba53a784ca2da44d53088e1b9bef7a Parents: 4b253ad Author: Andrew Avenoso <[email protected]> Authored: Wed Oct 29 00:05:39 2014 -0400 Committer: Andrew Avenoso <[email protected]> Committed: Wed Oct 29 00:09:36 2014 -0400 ---------------------------------------------------------------------- .../src/main/webapp/js/blurconsole.auth.js | 2 +- .../src/main/webapp/js/blurconsole.data.js | 24 ++++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e9572388/blur-console/src/main/webapp/js/blurconsole.auth.js ---------------------------------------------------------------------- diff --git a/blur-console/src/main/webapp/js/blurconsole.auth.js b/blur-console/src/main/webapp/js/blurconsole.auth.js index e975f2d..8c9db6c 100644 --- a/blur-console/src/main/webapp/js/blurconsole.auth.js +++ b/blur-console/src/main/webapp/js/blurconsole.auth.js @@ -31,7 +31,7 @@ blurconsole.auth = (function() { } var serializedForm = _getLoginDiv().find('form').serialize(); _getLoginDiv().html('Attempting to login <img src="img/ajax-loader.gif"/>'); - $.ajax('/service/auth/login', { + $.ajax('service/auth/login', { type: 'POST', data: serializedForm, success: function(data) { http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e9572388/blur-console/src/main/webapp/js/blurconsole.data.js ---------------------------------------------------------------------- diff --git a/blur-console/src/main/webapp/js/blurconsole.data.js b/blur-console/src/main/webapp/js/blurconsole.data.js index cc3485a..3767218 100644 --- a/blur-console/src/main/webapp/js/blurconsole.data.js +++ b/blur-console/src/main/webapp/js/blurconsole.data.js @@ -36,30 +36,30 @@ blurconsole.data = (function() { //------------------- Public API ------------------------------- function getTableList(callback) { - $.getJSON('/service/tables', callback).fail(function(xhr) { + $.getJSON('service/tables', callback).fail(function(xhr) { _handleError(xhr, 'tables', callback); }); } function getNodeList(callback) { - $.getJSON('/service/nodes', callback).fail(function(xhr) { + $.getJSON('service/nodes', callback).fail(function(xhr) { _handleError(xhr, 'tables', callback); }); } function getQueryPerformance(callback) { - $.getJSON('/service/queries/performance', callback).fail(function(xhr) { + $.getJSON('service/queries/performance', callback).fail(function(xhr) { _handleError(xhr, 'tables', callback); }); } function getQueries(callback) { - $.getJSON('/service/queries', callback).fail(function(xhr) { + $.getJSON('service/queries', callback).fail(function(xhr) { _handleError(xhr, 'tables', callback); }); } function cancelQuery(table, uuid) { - $.ajax('/service/queries/' + uuid + '/cancel', { + $.ajax('service/queries/' + uuid + '/cancel', { data: { table: table }, @@ -70,7 +70,7 @@ blurconsole.data = (function() { } function disableTable(table) { - $.ajax('/service/tables/' + table + '/disable', { + $.ajax('service/tables/' + table + '/disable', { error: function(xhr) { _handleError(xhr, 'tables'); } @@ -78,7 +78,7 @@ blurconsole.data = (function() { } function enableTable (table){ - $.ajax('/service/tables/' + table + '/enable', { + $.ajax('service/tables/' + table + '/enable', { error: function(xhr) { _handleError(xhr, 'tables'); } @@ -86,7 +86,7 @@ blurconsole.data = (function() { } function deleteTable (table, includeFiles) { - $.ajax('/service/tables/' + table + '/delete', { + $.ajax('service/tables/' + table + '/delete', { data: { includeFiles: includeFiles }, @@ -97,19 +97,19 @@ blurconsole.data = (function() { } function getSchema(table, callback) { - $.getJSON('/service/tables/' + table + '/schema', callback).fail(function(xhr) { + $.getJSON('service/tables/' + table + '/schema', callback).fail(function(xhr) { _handleError(xhr, 'tables'); }); } function findTerms (table, family, column, startsWith, callback) { - $.getJSON('/service/tables/' + table + '/' + family + '/' + column + '/terms', {startsWith: startsWith}, callback).fail(function(xhr) { + $.getJSON('service/tables/' + table + '/' + family + '/' + column + '/terms', {startsWith: startsWith}, callback).fail(function(xhr) { _handleError(xhr, 'tables'); }); } function copyTable(srcTable, destTable, destLocation, cluster) { - $.ajax('/service/tables/' + srcTable + '/copy', { + $.ajax('service/tables/' + srcTable + '/copy', { data: { newName: destTable, cluster: cluster, @@ -123,7 +123,7 @@ blurconsole.data = (function() { function sendSearch(query, table, args, callback) { var params = $.extend({table:table, query:query}, args); - $.ajax('/service/search', { + $.ajax('service/search', { 'type': 'POST', 'data': params, 'success': callback,
