mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
This commit is contained in:
parent
f63d729ee2
commit
9a31a51514
2 changed files with 24 additions and 3 deletions
12
PlexRequests.UI/Content/search.js
vendored
12
PlexRequests.UI/Content/search.js
vendored
|
@ -56,7 +56,9 @@ $(function () {
|
|||
if (searchTimer) {
|
||||
clearTimeout(searchTimer);
|
||||
}
|
||||
searchTimer = setTimeout(movieSearch, 800);
|
||||
searchTimer = setTimeout(function () {
|
||||
movieSearch();
|
||||
}.bind(this), 800);
|
||||
|
||||
});
|
||||
|
||||
|
@ -75,7 +77,9 @@ $(function () {
|
|||
if (searchTimer) {
|
||||
clearTimeout(searchTimer);
|
||||
}
|
||||
searchTimer = setTimeout(tvSearch, 400);
|
||||
searchTimer = setTimeout(function() {
|
||||
tvSearch();
|
||||
}.bind(this), 800);
|
||||
});
|
||||
|
||||
// Click TV dropdown option
|
||||
|
@ -116,7 +120,9 @@ $(function () {
|
|||
if (searchTimer) {
|
||||
clearTimeout(searchTimer);
|
||||
}
|
||||
searchTimer = setTimeout(musicSearch, 400);
|
||||
searchTimer = setTimeout(function () {
|
||||
musicSearch();
|
||||
}.bind(this), 800);
|
||||
|
||||
});
|
||||
|
||||
|
|
15
PlexRequests.UI/Content/site.js
vendored
15
PlexRequests.UI/Content/site.js
vendored
|
@ -8,6 +8,21 @@
|
|||
return s;
|
||||
}
|
||||
|
||||
Function.prototype.bind = function (parent) {
|
||||
var f = this;
|
||||
var args = [];
|
||||
|
||||
for (var a = 1; a < arguments.length; a++) {
|
||||
args[args.length] = arguments[a];
|
||||
}
|
||||
|
||||
var temp = function () {
|
||||
return f.apply(parent, args);
|
||||
}
|
||||
|
||||
return (temp);
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue