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-15 19:19:36 +00:00
parent 51f869e57d
commit 762d8a9c09

View File

@ -1605,7 +1605,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]]+"" : "");
}