If link has a target, use that.

Causes linked files to be opened in new browser tab.
This commit is contained in:
Nathan Gray 2014-07-16 15:03:09 +00:00
parent a9ff59e452
commit 9c57ef865d

View File

@ -1599,7 +1599,7 @@ var et2_link_list = et2_link_string.extend(
$j(document.createElement("td"))
.appendTo(row)
.addClass(columns[i])
.click( function(){self.egw().open(_link_data, "", "view",null,_link_data.app,_link_data.app);})
.click( function(){self.egw().open(_link_data, "", "view",null,_link_data.target ? _link_data.target : _link_data.app,_link_data.app);})
.text(_link_data[columns[i]] ? _link_data[columns[i]]+"" : "");
}