mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
UI Cleanup - Updated Instrumentation, jQuery and Mixins subtrees.
This commit is contained in:
parent
44928c8f64
commit
70bfad4e6a
24 changed files with 716 additions and 490 deletions
|
@ -1,21 +1,20 @@
|
|||
module.exports = function(){
|
||||
module.exports = function() {
|
||||
|
||||
var $ = this;
|
||||
|
||||
var original = $.ajax;
|
||||
$.ajax = function(xhr){
|
||||
$.ajax = function(xhr) {
|
||||
'use strict';
|
||||
if(xhr && xhr.data && xhr.type === 'DELETE') {
|
||||
if(xhr.url.contains('?')) {
|
||||
if (xhr && xhr.data && xhr.type === 'DELETE') {
|
||||
if (xhr.url.contains('?')) {
|
||||
xhr.url += '&';
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
xhr.url += '?';
|
||||
}
|
||||
xhr.url += $.param(xhr.data);
|
||||
delete xhr.data;
|
||||
}
|
||||
if(xhr) {
|
||||
if (xhr) {
|
||||
xhr.headers = xhr.headers || {};
|
||||
xhr.headers['X-Api-Key'] = window.NzbDrone.ApiKey;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue