From d3c7e21144a8b81ec76aa41710574ce03a9854b9 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 24 Mar 2015 15:23:28 +0000 Subject: [PATCH] After we find a match, no need to keep looking. --- etemplate/js/et2_widget_selectbox.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etemplate/js/et2_widget_selectbox.js b/etemplate/js/et2_widget_selectbox.js index 9a40607503..28a5d81d3e 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -955,6 +955,7 @@ var et2_selectbox_ro = et2_selectbox.extend([et2_IDetachedDOM], { this.span.text(label); if (typeof option == 'object' && option.title) this.set_statustext(option.title); + break; } else { @@ -962,6 +963,7 @@ var et2_selectbox_ro = et2_selectbox.extend([et2_IDetachedDOM], .text(label) .attr('data-value', _value[i]) .appendTo(this.span); + break; } } }