mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
UI dependency graph cleanup
This commit is contained in:
parent
86ea33b638
commit
4948d0608b
87 changed files with 1119 additions and 735 deletions
|
|
@ -1,18 +1,18 @@
|
|||
'use strict';
|
||||
define(function () {
|
||||
define(['backbone'],function (Backbone) {
|
||||
//This module will automatically route all relative links through backbone router rather than
|
||||
//causing links to reload pages.
|
||||
|
||||
var routeBinder = {
|
||||
|
||||
bind: function (router) {
|
||||
bind: function () {
|
||||
var self = this;
|
||||
$(document).on('click', 'a[href]', function (event) {
|
||||
self._handleClick(event, router);
|
||||
self._handleClick(event);
|
||||
});
|
||||
},
|
||||
|
||||
_handleClick: function (event, router) {
|
||||
_handleClick: function (event) {
|
||||
var $target = $(event.target);
|
||||
|
||||
//check if tab nav
|
||||
|
|
@ -41,7 +41,7 @@ define(function () {
|
|||
|
||||
|
||||
if (!href.startsWith('http')) {
|
||||
router.navigate(href, { trigger: true });
|
||||
Backbone.history.navigate(href, { trigger: true });
|
||||
}
|
||||
|
||||
else {
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
'use strict';
|
||||
define(
|
||||
[
|
||||
'bootstrap'
|
||||
], function () {
|
||||
|
||||
$('body').tooltip({
|
||||
selector: '[title]'
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue