Skip to content

Commit 881b4ca

Browse files
author
p01
committed
Check if this._show_resource failed.
1 parent 935c769 commit 881b4ca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/resource-manager/resource_display_broker.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cls.ResourceDisplayBroker = function()
1717
if (manager && view)
1818
{
1919
if (line)
20-
data.lines=[line];
20+
data.lines = [line];
2121

2222
view.show_resource(resource, data);
2323

@@ -28,7 +28,8 @@ cls.ResourceDisplayBroker = function()
2828

2929
this.show_resource_for_id = function(id, line)
3030
{
31-
this._show_resource(id, line);
31+
if (!this._show_resource(id, line))
32+
window.open(url);
3233
}
3334

3435
this.show_resource_for_url = function(url, line)
@@ -57,7 +58,7 @@ cls.ResourceDisplayBroker = function()
5758
if (url.indexOf('://') == -1)
5859
{
5960
rt_id = ele.get_attr('parent-node-chain', 'rt-id');
60-
if(rt_id)
61+
if (rt_id)
6162
url = window.helpers.resolveURLS(runtimes.getURI(rt_id), url);
6263
}
6364
this.show_resource_for_url(url, line);

0 commit comments

Comments
 (0)