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
+20 -28
View File
@@ -1,29 +1,21 @@
'use strict';
define(
[
'jquery',
'backgrid'
], function ($, Backgrid) {
return Backgrid.UriCell.extend({
var $ = require('jquery');
var Backgrid = require('backgrid');
className: 'wiki-link-cell',
title: 'Read the Wiki for more information',
text: 'Wiki',
render: function () {
this.$el.empty();
var rawValue = this.model.get(this.column.get("name"));
var formattedValue = this.formatter.fromRaw(rawValue, this.model);
this.$el.append($("<a>", {
tabIndex: -1,
href: rawValue,
title: this.title || formattedValue,
target: this.target
}).text(this.text));
this.delegateEvents();
return this;
}
});
});
module.exports = Backgrid.UriCell.extend({
className : 'wiki-link-cell',
title : 'Read the Wiki for more information',
text : 'Wiki',
render : function(){
this.$el.empty();
var rawValue = this.model.get(this.column.get('name'));
var formattedValue = this.formatter.fromRaw(rawValue, this.model);
this.$el.append($('<a>', {
tabIndex : -1,
href : rawValue,
title : this.title || formattedValue,
target : this.target
}).text(this.text));
this.delegateEvents();
return this;
}
});