Skip to content

Commit

Permalink
GRP-1448: (commit 2) do not allow enter key in dojo combobox
Browse files Browse the repository at this point in the history
  • Loading branch information
mchyzer committed Dec 29, 2016
1 parent ebbfada commit 62e4270
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -11,6 +11,8 @@

import org.apache.commons.lang.StringUtils;

import edu.internet2.middleware.grouper.ui.util.GrouperUiConfig;



/**
Expand Down Expand Up @@ -255,7 +257,9 @@ public void doTag() throws JspException, IOException {
result.append(" dijit.byId('" + this.idBase + "Id').onChange = function(evt) {\n");
result.append(" this.focusNode.setSelectionRange(0,0);\n");
result.append(" }\n");
result.append(" grouperDisableEnterOnCombo('#" + this.idBase + "Id');\n");
if (GrouperUiConfig.retrieveConfig().propertyValueBoolean("grouperUi.disableEnterKeyOnCombobox", true)) {
result.append(" grouperDisableEnterOnCombo('#" + this.idBase + "Id');\n");
}
result.append(" },1000);\n");

// result.append(" dijit.byId('" + this.idBase + "Id').labelFunc = function(item, store) {\n");
Expand Down

0 comments on commit 62e4270

Please sign in to comment.