run all ajax through apiclient
This commit is contained in:
parent
683e6f472c
commit
db0a6eb632
28 changed files with 55 additions and 46 deletions
|
@ -27,7 +27,7 @@
|
|||
currentType = type;
|
||||
|
||||
var promise1 = ApiClient.getServerConfiguration();
|
||||
var promise2 = $.getJSON(ApiClient.getUrl("System/Configuration/MetadataPlugins"));
|
||||
var promise2 = ApiClient.getJSON(ApiClient.getUrl("System/Configuration/MetadataPlugins"));
|
||||
|
||||
$.when(promise1, promise2).done(function (response1, response2) {
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
|||
|
||||
} else {
|
||||
|
||||
$.getJSON(ApiClient.getUrl("System/Configuration/MetadataOptions/Default")).done(function (defaultConfig) {
|
||||
ApiClient.getJSON(ApiClient.getUrl("System/Configuration/MetadataOptions/Default")).done(function (defaultConfig) {
|
||||
|
||||
|
||||
config = defaultConfig;
|
||||
|
@ -510,7 +510,7 @@
|
|||
|
||||
} else {
|
||||
|
||||
$.getJSON(ApiClient.getUrl("System/Configuration/MetadataOptions/Default")).done(function (defaultOptions) {
|
||||
ApiClient.getJSON(ApiClient.getUrl("System/Configuration/MetadataOptions/Default")).done(function (defaultOptions) {
|
||||
|
||||
defaultOptions.ItemType = type;
|
||||
config.MetadataOptions.push(defaultOptions);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue