removed NzbDrone. namespace, everything is done using require.

This commit is contained in:
Keivan Beigi 2013-06-24 16:41:59 -07:00
commit b0bd3f34f1
121 changed files with 2570 additions and 2587 deletions

View file

@ -1,15 +1,19 @@
'use strict';
define(['app', 'Shared/FormatHelpers', 'Cells/NzbDroneCell'], function () {
return NzbDrone.Cells.NzbDroneCell.extend({
className: 'air-date-cell',
define(
[
'backgrid',
'Shared/FormatHelpers'
], function (Backgrid, FormatHelpers) {
return Backgrid.Cell.extend({
className: 'air-date-cell',
render: function () {
render: function () {
this.$el.empty();
var airDate = this.model.get(this.column.get('name'));
this.$el.html(NzbDrone.Shared.FormatHelpers.DateHelper(airDate));
return this;
this.$el.empty();
var airDate = this.model.get(this.column.get('name'));
this.$el.html(FormatHelpers.DateHelper(airDate));
return this;
}
}
});
});
});