incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaven...@apache.org
Subject [14/26] git commit: update console js to use new paths
Date Wed, 05 Nov 2014 05:58:47 GMT
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/a1fb2ce7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/a1fb2ce7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/a1fb2ce7

Branch: refs/heads/master
Commit: a1fb2ce70fda22e81dab224b0c7fa01cb8b0b1bd
Parents: 271fe0e
Author: Andrew Avenoso <andrew.va@gmail.com>
Authored: Wed Oct 29 00:05:39 2014 -0400
Committer: Andrew Avenoso <andrew.va@gmail.com>
Committed: Tue Nov 4 20:55:46 2014 -0500

----------------------------------------------------------------------
 .../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/a1fb2ce7/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/a1fb2ce7/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,


Mime
View raw message