HeaderCell is a standard mixin

pull/6/head
Mark McDowall 10 years ago
parent 85f6d90f40
commit aa9df49ea2

@ -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;
};

@ -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,

@ -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;
Loading…
Cancel
Save