|
@@ -82,9 +82,12 @@ let ProjTreeSetting = {
|
|
|
tdBindEvent: function (td, node) {
|
|
|
if (node.data.projType === projectType.tender) {
|
|
|
$('a:eq(1)', td).bind('click', function () {
|
|
|
+ let newTab = window.open('about:blank');
|
|
|
BeforeOpenProject(node.id(), {'fullFolder': GetFullFolder(node.parent)}, function () {
|
|
|
- //window.location.href = '/main?project=' + node.id();
|
|
|
- window.open('/main?project=' + node.id());
|
|
|
+ let mainUrl = '/main?project=' + node.id();
|
|
|
+ CommonAjax.get(mainUrl, [], function () {
|
|
|
+ newTab.location.href = mainUrl;
|
|
|
+ });
|
|
|
});
|
|
|
return false;
|
|
|
});
|