Ticket #3288: selection_panels.js.patch
File selection_panels.js.patch, 931 bytes (added by , 8 years ago) |
---|
-
binaries/data/mods/public/gui/session/selection_panels.js
780 780 // TODO 8 is the row lenght, make variable 781 781 if (getNumberOfRightPanelButtons() > 8 && selection.length > 1) 782 782 return []; 783 784 var techs = []; 783 785 for (var ent of selection) 784 786 { 785 787 var entState = GetEntityState(ent); 786 if (entState.production && entState.production.technologies.length) 787 return entState.production.technologies; 788 if (entState.production && entState.production.technologies.length) { 789 for(var tech of entState.production.technologies) 790 techs.push(tech); 791 } 788 792 } 789 return [];793 return techs; 790 794 }, 791 795 "hideItem": function(i, rowLength) // called when no item is found 792 796 {