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

Merge pull request #254 from ZBoxApp/manager_beta_v2

enable again get config via parse rest api
parents 54886d17 dcbfebdd
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
"sass-loader": "3.2.0", "sass-loader": "3.2.0",
"style-loader": "0.13.1", "style-loader": "0.13.1",
"url-loader": "0.5.7", "url-loader": "0.5.7",
"webpack": "webpack/webpack#master" "webpack": "2.1.0-beta.6"
}, },
"scripts": { "scripts": {
"check": "eslint --ext \".jsx\" --ignore-pattern node_modules --quiet .", "check": "eslint --ext \".jsx\" --ignore-pattern node_modules --quiet .",
......
module.exports = {"main":{"js":"/451280bundle.js"}} module.exports = {"main":{"js":"/785572bundle.js"}}
\ No newline at end of file \ No newline at end of file
...@@ -75,8 +75,13 @@ function initZimbra() { ...@@ -75,8 +75,13 @@ function initZimbra() {
export function getClientConfig(success, error) { export function getClientConfig(success, error) {
return $.ajax({ return $.ajax({
url: '/config/config.json', url: 'https://manager-api.zboxapp.com/parse/functions/getConfigManager',
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