mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-01 12:34:40 +00:00
HeaderCell is a standard mixin
This commit is contained in:
parent
85f6d90f40
commit
aa9df49ea2
3 changed files with 7 additions and 9 deletions
|
@ -1,4 +1,6 @@
|
||||||
module.exports.register = function(backgrid) {
|
module.exports = function() {
|
||||||
|
var backgrid = this;
|
||||||
|
|
||||||
backgrid.SonarrHeaderCell = backgrid.HeaderCell.extend({
|
backgrid.SonarrHeaderCell = backgrid.HeaderCell.extend({
|
||||||
events : {
|
events : {
|
||||||
'click' : 'onClick'
|
'click' : 'onClick'
|
||||||
|
@ -109,4 +111,6 @@ module.exports.register = function(backgrid) {
|
||||||
this.$el.children('i').removeClass('icon-sort-up icon-sort-down');
|
this.$el.children('i').removeClass('icon-sort-up icon-sort-down');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return backgrid.SonarrHeaderCell;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,12 +1,9 @@
|
||||||
require('../JsLibraries/backbone.backgrid');
|
|
||||||
require('backbone');
|
|
||||||
|
|
||||||
require('backbone');
|
require('backbone');
|
||||||
|
|
||||||
var backgrid = require('../JsLibraries/backbone.backgrid');
|
var backgrid = require('../JsLibraries/backbone.backgrid');
|
||||||
var header = require('../Shared/Grid/HeaderCell');
|
var header = require('../Shared/Grid/HeaderCell');
|
||||||
|
|
||||||
header.register(backgrid);
|
header.call(backgrid);
|
||||||
|
|
||||||
backgrid.Column.prototype.defaults = {
|
backgrid.Column.prototype.defaults = {
|
||||||
name : undefined,
|
name : undefined,
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
require('backgrid');
|
|
||||||
require('backbone');
|
|
||||||
require('../JsLibraries/backbone.backgrid.paginator');
|
|
||||||
|
|
||||||
require('backbone');
|
require('backbone');
|
||||||
var backgrid = require('backgrid');
|
var backgrid = require('backgrid');
|
||||||
require('../JsLibraries/backbone.backgrid.paginator');
|
require('../JsLibraries/backbone.backgrid.paginator');
|
||||||
|
|
||||||
module.exports = backgrid.Extension.Paginator;
|
module.exports = backgrid.Extension.Paginator;
|
Loading…
Reference in a new issue