From 60bbb0c7f101b10e60c05cb969a5f11633d63210 Mon Sep 17 00:00:00 2001 From: Colin McLeod Date: Wed, 27 May 2015 02:17:18 -0700 Subject: [PATCH] Fix highlight selected standard component --- app/js/directives/directive-component-select.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/js/directives/directive-component-select.js b/app/js/directives/directive-component-select.js index 038d93ea..c729d6d9 100755 --- a/app/js/directives/directive-component-select.js +++ b/app/js/directives/directive-component-select.js @@ -3,18 +3,18 @@ angular.module('app').directive('componentSelect', function () { // Generting the HTML in this manner is MUCH faster than using an angular template. function appendGroup(list, opts, cid, mass) { - var prevClass = null, prevRating = null; + var prevClass = null; for (var i = 0; i < opts.length; i++) { var o = opts[i]; var id = o.id || (o.class + o.rating); // Common components' ID is their class and rating - if(i > 0 && opts.length > 3 && o.class != prevClass && (o.rating != prevRating || o.mode)) { + if(i > 0 && opts.length > 3 && o.class != prevClass && o.grp != 'cr') { list.push('
'); } list.push('