Skip to content
Snippets Groups Projects
Commit 76181cd6 authored by juanf's avatar juanf
Browse files

SSDM-2340 : Support open on new tab for all javascript links.

SVN: 34465
parent 0440e75f
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,21 @@ var SampleDataGridUtil = new function() {
label : 'Identifier',
property : 'identifier',
isExportable: true,
sortable : true
sortable : true,
render : function(data) {
var href = Util.getURLFor(mainController.sideMenu.getCurrentNodeId(), "showViewSamplePageFromPermId", data.permId);
var link = $("<a>", { "href" : href, "class" : "browser-compatible-javascript-link" }).append(data.identifier);
return link;
},
filter : function(data, filter) {
return data.identifier.indexOf(filter) !== -1;
},
sort : function(data1, data2, asc) {
var value1 = data1.identifier;
var value2 = data2.identifier;
var sortDirection = (asc)? 1 : -1;
return sortDirection * naturalSort(value1, value2);
}
});
if($.inArray("NAME", propertyCodes) !== -1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment