File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ window.templates.resource_tree || (window.templates.resource_tree = new function
1111
1212 this . _get_short_distinguisher = function ( url )
1313 {
14- var name = url . short_distinguisher ;
14+ var name = url . short_distinguisher || url ;
1515
1616 if ( name . length > DISTINGUISHER_MAX_LENGTH )
1717 name = name . slice ( 0 , DISTINGUISHER_MAX_LENGTH ) + "…" ;
@@ -89,8 +89,10 @@ window.templates.resource_tree || (window.templates.resource_tree = new function
8989 [ "h2" ,
9090 extras . tpl . button ,
9191 [ "span" ,
92- window_info . title ,
93- "class" , "resource-tree-window-label"
92+ this . _get_short_distinguisher ( window_info . title ) ,
93+ "class" , "resource-tree-window-label" ,
94+ "data-tooltip" , "js-script-select" ,
95+ "data-tooltip-text" , window_info . title
9496 ]
9597 ] . concat ( extras . tpl . h2 ) ,
9698 ] . concat ( extras . tpl . li )
You can’t perform that action at this time.
0 commit comments