Fixed: Back to top button is back

Fixed: Delete series in Firefox
pull/4/head
kayone 11 years ago
parent c926775719
commit 48c9e29eab

@ -1,31 +1,28 @@
//try to add ajax data as query string to DELETE calls.
'use strict';
define(function () {
define(
[
'jquery'
], function ($) {
return function () {
var original = $.ajax;
var original = this.ajax;
this.ajax = function () {
$.ajax = function (xhr) {
var xhr = arguments[0];
//check if ajax call was made with data option
if (xhr && xhr.data && xhr.type === 'DELETE') {
if (!xhr.url.contains('?')) {
xhr.url = xhr.url + '?' + $.param(xhr.data);
if (xhr.url.contains('?')) {
xhr.url += '&';
}
else {
xhr.url = xhr.url + '&' + $.param(xhr.data);
xhr.url += '?';
}
xhr.url += $.param(xhr.data);
delete xhr.data;
}
if (xhr) {
xhr.headers = xhr.headers || {};
// xhr.headers.Authorization = window.NzbDrone.ApiKey;
}
return original.apply(this, arguments);
};
};
});
});

@ -29,25 +29,6 @@ require.config({
shim: {
jquery: {
exports: 'jQuery',
deps :
[
'Mixins/jquery.ajax'
],
init: function (AjaxMixin) {
require(
[
'jQuery/ToTheTop',
'Instrumentation/ErrorHandler'
]);
AjaxMixin.apply($);
}
},
signalR: {
deps:
[
@ -83,11 +64,15 @@ require.config({
},
backbone: {
deps :
deps:
[
'jquery',
'underscore',
'jquery'
'Mixins/jquery.ajax',
'jQuery/ToTheTop'
],
exports: 'Backbone'
},
@ -199,6 +184,7 @@ require.config({
define(
[
'jquery',
'backbone',
'marionette',
'jQuery/RouteBinder',
@ -209,7 +195,7 @@ define(
'Router',
'Shared/Modal/Controller',
'Instrumentation/StringFormat'
], function (Backbone, Marionette, RouteBinder, SignalRBroadcaster, NavbarView, AppLayout, SeriesController, Router, ModalController) {
], function ($, Backbone, Marionette, RouteBinder, SignalRBroadcaster, NavbarView, AppLayout, SeriesController, Router, ModalController) {
new SeriesController();
new ModalController();

@ -1,8 +1,9 @@
'use strict';
define(
[
'jquery',
'bootstrap'
], function () {
], function ($) {
$(document).ready(function () {
var _window = $(window);
@ -18,7 +19,7 @@ define(
});
_scrollButton.click(function () {
$("html, body").animate({ scrollTop: 0 }, 600);
$('html, body').animate({ scrollTop: 0 }, 600);
return false;
});
});

Loading…
Cancel
Save