repo.or.cz
/
ganeti_webmgr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Fix error when sorting Job list by object.
[ganeti_webmgr.git]
/
ganeti_web
/
static
/
js
/
jquery.ajax.delete.js
blob
fdd28c929a2bc27191eb89e2d16e17f73b5f412d
1
function _ajax_request(url, data, callback, type, method) {
2
if (jQuery.isFunction(data)) {
3
callback = data;
4
data = {};
5
}
6
return jQuery.ajax({
7
type: method,
8
url: url,
9
data: data,
10
success: callback,
11
dataType: type
12
});
13
}
14
15
jQuery.extend({
16
delete_: function(url, data, callback, type) {
17
return _ajax_request(url, data, callback, type, 'DELETE');
18
}
19
});