rjs -> webpack

This commit is contained in:
Keivan Beigi
2015-02-02 17:18:45 -08:00
parent 344f3d66ef
commit 428a1439e5
399 changed files with 11591 additions and 16139 deletions
+16 -24
View File
@@ -1,28 +1,20 @@
'use strict';
var Backgrid = require('backgrid');
define(['backgrid'], function (Backgrid) {
return Backgrid.Cell.extend({
className : 'protocol-cell',
render : function () {
var protocol = this.model.get('protocol') || 'Unknown';
var label = '??';
if (protocol) {
if (protocol === 'torrent') {
label = 'torrent';
}
else if (protocol === 'usenet') {
label = 'nzb';
}
this.$el.html('<div class="label label-default protocol-{0}" title="{0}">{1}</div>'.format(protocol, label));
module.exports = Backgrid.Cell.extend({
className : 'protocol-cell',
render : function(){
var protocol = this.model.get('protocol') || 'Unknown';
var label = '??';
if(protocol) {
if(protocol === 'torrent') {
label = 'torrent';
}
this.delegateEvents();
return this;
else if(protocol === 'usenet') {
label = 'nzb';
}
this.$el.html('<div class="label label-default protocol-{0}" title="{0}">{1}</div>'.format(protocol, label));
}
});
this.delegateEvents();
return this;
}
});