removing js refrences from index.html

This commit is contained in:
Keivan Beigi 2013-06-13 17:41:46 -07:00
parent 1f62194ab8
commit aed7b95245
13 changed files with 335 additions and 300 deletions

View file

@ -1,19 +1,22 @@
"use strict";
NzbDrone.Release.ApprovalStatusCell = Backgrid.Cell.extend({
className: "approval-status-cell",
require(['app', 'backgrid'], function () {
NzbDrone.Release.ApprovalStatusCell = Backgrid.Cell.extend({
render: function () {
var rejections = this.model.get(this.column.get("name"));
className: "approval-status-cell",
var result = '';
render: function () {
var rejections = this.model.get(this.column.get("name"));
_.each(rejections, function (reason) {
result += reason + ' ';
});
var result = '';
this.$el.html(result);
this.delegateEvents();
return this;
}
_.each(rejections, function (reason) {
result += reason + ' ';
});
this.$el.html(result);
this.delegateEvents();
return this;
}
});
});