Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
c46e6e98
Commit
c46e6e98
authored
Jul 18, 2012
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return jqxhr object from ajax request
Not the context of the request
parent
e83d6b94
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
21 deletions
+18
-21
vifib/js/jquery.slapos.js
vifib/js/jquery.slapos.js
+18
-21
No files found.
vifib/js/jquery.slapos.js
View file @
c46e6e98
...
...
@@ -78,12 +78,10 @@
}
delete
args
.
data
;
$
.
extend
(
args
,
{
statusCode
:
statusCode
});
return
this
.
each
(
function
()
{
var
ajaxOptions
=
{
type
:
type
,
url
:
$
(
this
).
slapos
(
'
host
'
)
+
method
,
contentType
:
'
application/json
'
,
//cache: false,
data
:
JSON
.
stringify
(
data
),
datatype
:
'
json
'
,
context
:
$
(
this
),
...
...
@@ -97,8 +95,7 @@
}
};
$
.
extend
(
ajaxOptions
,
args
);
$
.
ajax
(
ajaxOptions
);
});
return
$
.
ajax
(
ajaxOptions
);
},
instanceList
:
function
(
args
)
{
...
...
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