Skip to content

Commit

Permalink
panorama: fix show details link
Browse files Browse the repository at this point in the history
(cherry picked from commit 6da6e1f)
  • Loading branch information
sni committed Sep 23, 2022
1 parent 7fc11d6 commit da3858d
Showing 1 changed file with 9 additions and 9 deletions.
Expand Up @@ -314,7 +314,15 @@ TP.iconClickHandlerExec = function(id, link, panel, target, config, extraOptions
var menu = link.match(/menu:\/\/(.+)$/);
if(special && special[1]) {
link = undefined;
if(special[1].match(/^[a-zA-Z_\-\d]+$/)) {
if(special[1] == 'show_details') {
link = TP.getIconDetailsLink(panel);
}
else if(special[1] == 'refresh') {
var el = panel.getEl();
TP.updateAllIcons(panel.tab, panel.id, undefined, el);
el.mask(el.getSize().width > 50 ? "refreshing" : undefined);
}
else if(special[1].match(/^[a-zA-Z_\-\d]+$/)) {
// is that tab already open?
var tabbar = Ext.getCmp('tabbar');
var tab_id = "pantab_"+special[1];
Expand All @@ -328,14 +336,6 @@ TP.iconClickHandlerExec = function(id, link, panel, target, config, extraOptions
}
TP.add_pantab({ id: tab_id, replace_id: replace });
}
}
else if(special[1] == 'show_details') {
link = TP.getIconDetailsLink(panel);
}
else if(special[1] == 'refresh') {
var el = panel.getEl();
TP.updateAllIcons(panel.tab, panel.id, undefined, el);
el.mask(el.getSize().width > 50 ? "refreshing" : undefined);
} else {
TP.Msg.msg("fail_message~~unrecognized link: "+special[1]);
}
Expand Down

0 comments on commit da3858d

Please sign in to comment.