Add RPC method name as fragment of the URL for session methods
(grafted from 6286497d452bfbb965b9df7341b93c025aab16d7) --HG-- branch : 8.0
This commit is contained in:
+18
-15
@@ -181,15 +181,16 @@
|
||||
|
||||
Sao.Session.server_version = function() {
|
||||
var timeoutID = Sao.common.processing.show();
|
||||
return jQuery.ajax({
|
||||
'contentType': 'application/json',
|
||||
'data': JSON.stringify({
|
||||
let args = {
|
||||
'id': 0,
|
||||
'method': 'common.server.version',
|
||||
'params': []
|
||||
}),
|
||||
};
|
||||
return jQuery.ajax({
|
||||
'contentType': 'application/json',
|
||||
'data': JSON.stringify(args),
|
||||
'dataType': 'json',
|
||||
'url': 'rpc/',
|
||||
'url': 'rpc/#' + args.method,
|
||||
'type': 'post',
|
||||
'complete': [function() {
|
||||
Sao.common.processing.hide(timeoutID);
|
||||
@@ -594,15 +595,16 @@
|
||||
|
||||
Sao.DB.list = function() {
|
||||
var timeoutID = Sao.common.processing.show();
|
||||
return jQuery.ajax({
|
||||
'contentType': 'application/json',
|
||||
'data': JSON.stringify({
|
||||
let args = {
|
||||
'id': 0,
|
||||
'method': 'common.db.list',
|
||||
'params': []
|
||||
}),
|
||||
};
|
||||
return jQuery.ajax({
|
||||
'contentType': 'application/json',
|
||||
'data': JSON.stringify(args),
|
||||
'dataType': 'json',
|
||||
'url': 'rpc/',
|
||||
'url': 'rpc/#' + args.method,
|
||||
'type': 'post',
|
||||
'complete': [function() {
|
||||
Sao.common.processing.hide(timeoutID);
|
||||
@@ -616,15 +618,16 @@
|
||||
|
||||
Sao.Authentication.services = function() {
|
||||
var timeoutID = Sao.common.processing.show();
|
||||
return jQuery.ajax({
|
||||
'contentType': 'application/json',
|
||||
'data': JSON.stringify({
|
||||
let args = {
|
||||
'id': 0,
|
||||
'method': 'common.authentication.services',
|
||||
'params': []
|
||||
}),
|
||||
}
|
||||
return jQuery.ajax({
|
||||
'contentType': 'application/json',
|
||||
'data': JSON.stringify(args),
|
||||
'dataType': 'json',
|
||||
'url': 'rpc/',
|
||||
'url': 'rpc/#' + args.method,
|
||||
'type': 'post',
|
||||
'complete': [function() {
|
||||
Sao.common.processing.hide(timeoutID);
|
||||
|
||||
Reference in New Issue
Block a user