parent
68352e0340
commit
0e7fc2e697
@ -0,0 +1,29 @@
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'jquery',
|
||||
'backgrid'
|
||||
], function ($, Backgrid) {
|
||||
return 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;
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Reference in new issue