Commit 07f57bed by NGUYEN HOANG SON

change dashboard setting api

parent 6ad63399
...@@ -37,7 +37,7 @@ DashboardSetting.getSettingData = function (callback) { ...@@ -37,7 +37,7 @@ DashboardSetting.getSettingData = function (callback) {
let param = { let param = {
sid: COMMON.getSid(), sid: COMMON.getSid(),
}; };
const url = DashboardSetting.baseApiUrl + 'getAllSettingData'; const url = DashboardSetting.baseApiUrl;
COMMON.cmsAjax(url, param, false, function (json) { COMMON.cmsAjax(url, param, false, function (json) {
if (callback) { if (callback) {
callback(json); callback(json);
...@@ -83,7 +83,7 @@ DashboardSetting.saveSetting = function () { ...@@ -83,7 +83,7 @@ DashboardSetting.saveSetting = function () {
const element = DashboardSetting.elementItems[key]; const element = DashboardSetting.elementItems[key];
param[key] = element.enabled; param[key] = element.enabled;
} }
const url = DashboardSetting.baseApiUrl + 'saveSetting'; const url = CONSTANT.URL.CMS.BASE + ClientData.userInfo_accountPath() + CONSTANT.URL.CMS.API.BASE + 'saveDashboardSetting/';
COMMON.cmsAjax(url, param, false, function (json) { COMMON.cmsAjax(url, param, false, function (json) {
DashboardSetting.closeModal(); DashboardSetting.closeModal();
if (DashboardSetting.changeSettingCallback && typeof DashboardSetting.changeSettingCallback === 'function') { if (DashboardSetting.changeSettingCallback && typeof DashboardSetting.changeSettingCallback === 'function') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment