Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zimbra-admin-api-js
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Public
zimbra-admin-api-js
Commits
a14c7432
Commit
a14c7432
authored
May 24, 2016
by
Patricio Bruna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed typos
parent
12fa1369
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
.gitignore
.gitignore
+1
-0
path.json
path.json
+1
-1
client.jsx
src/utils/client.jsx
+6
-6
No files found.
.gitignore
View file @
a14c7432
...
...
@@ -5,6 +5,7 @@ dist
src/config
node_modules
/path.json
./path.json
.npminstall
ncp-debug.log
npm-debug.log
...
...
path.json
View file @
a14c7432
module.exports
=
{
"main"
:{
"js"
:
"/531271bundle.js"
}}
\ No newline at end of file
module.exports
=
{
"main"
:{
"js"
:
"/516290bundle.js"
}}
\ No newline at end of file
src/utils/client.jsx
View file @
a14c7432
...
...
@@ -156,8 +156,8 @@ export function getAllCompanies() {
return
new
Promise
((
resolve
,
reject
)
=>
{
return
$
.
ajax
({
url
,
beforeSend
:
function
(
xhrObj
)
{
xhrObj
.
setRequestHeader
(
"x-api-token"
,
window
.
manager_config
.
user_token
);
beforeSend
:
function
setApiToken
(
xhrObj
)
{
xhrObj
.
setRequestHeader
(
'x-api-token'
,
window
.
manager_config
.
user_token
);
},
dataType
:
'json'
,
success
:
function
onSuccess
(
data
)
{
...
...
@@ -175,8 +175,8 @@ export function getCompany(id, success, error) {
return
$
.
ajax
({
url
,
beforeSend
:
function
(
xhrObj
)
{
xhrObj
.
setRequestHeader
(
"x-api-token"
,
window
.
manager_config
.
user_token
);
beforeSend
:
function
setApiToken
(
xhrObj
)
{
xhrObj
.
setRequestHeader
(
'x-api-token'
,
window
.
manager_config
.
user_token
);
},
dataType
:
'json'
,
success
:
function
onSuccess
(
data
)
{
...
...
@@ -193,8 +193,8 @@ export function getInvoices(id, success, error) {
return
$
.
ajax
({
url
,
beforeSend
:
function
(
xhrObj
)
{
xhrObj
.
setRequestHeader
(
"x-api-token"
,
window
.
manager_config
.
user_token
);
beforeSend
:
function
setApiToken
(
xhrObj
)
{
xhrObj
.
setRequestHeader
(
'x-api-token'
,
window
.
manager_config
.
user_token
);
},
dataType
:
'json'
,
success
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment