1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-29 11:05:44 +00:00

HeaderCell is a standard mixin

This commit is contained in:
Mark McDowall 2015-02-03 00:01:05 -08:00
parent 85f6d90f40
commit aa9df49ea2
3 changed files with 7 additions and 9 deletions

View file

@ -1,4 +1,6 @@
module.exports.register = function(backgrid) {
module.exports = function() {
var backgrid = this;
backgrid.SonarrHeaderCell = backgrid.HeaderCell.extend({
events : {
'click' : 'onClick'
@ -109,4 +111,6 @@ module.exports.register = function(backgrid) {
this.$el.children('i').removeClass('icon-sort-up icon-sort-down');
}
});
return backgrid.SonarrHeaderCell;
};

View file

@ -1,12 +1,9 @@
require('../JsLibraries/backbone.backgrid');
require('backbone');
require('backbone');
var backgrid = require('../JsLibraries/backbone.backgrid');
var header = require('../Shared/Grid/HeaderCell');
header.register(backgrid);
header.call(backgrid);
backgrid.Column.prototype.defaults = {
name : undefined,

View file

@ -1,8 +1,5 @@
require('backgrid');
require('backbone');
require('../JsLibraries/backbone.backgrid.paginator');
require('backbone');
var backgrid = require('backgrid');
require('../JsLibraries/backbone.backgrid.paginator');
module.exports = backgrid.Extension.Paginator;