Commit e36620cf authored by Juorder Gonzalez's avatar Juorder Gonzalez Committed by GitHub

Merge pull request #251 from ZBoxApp/manager_beta_v2

roll back to get config via parse, now get it via classic way json
parents d845f4e3 8f51623d
...@@ -49,7 +49,7 @@ const notFoundParams = { ...@@ -49,7 +49,7 @@ const notFoundParams = {
function preRenderSetup(callwhendone) { function preRenderSetup(callwhendone) {
const d1 = Client.getClientConfig( const d1 = Client.getClientConfig(
(data) => { (data) => {
const config = data.result; const config = data.result || data;
if (!config) { if (!config) {
return; return;
......
...@@ -75,13 +75,8 @@ function initZimbra() { ...@@ -75,13 +75,8 @@ function initZimbra() {
export function getClientConfig(success, error) { export function getClientConfig(success, error) {
return $.ajax({ return $.ajax({
url: 'https://ventasparse-ventas.hub.zboxapp.com/parse/functions/getConfigManager', url: '/config/config.json',
dataType: 'json', dataType: 'json',
method: 'POST',
headers: {
'X-Parse-Application-Id': 'salesZboxManagerApp'
},
data: {target: 'manager'},
success, success,
error: function onError(xhr, status, err) { error: function onError(xhr, status, err) {
var e = handleError('getClientConfig', err); var e = handleError('getClientConfig', err);
......
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