Permalink
Browse files

Fix selecttextinput widget

  • Loading branch information...
1 parent 4c65fe0 commit d92d642c79455e4ccfa08cf3d7e63cea611c7408 @ivoronin ivoronin committed Apr 13, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 ajenti/plugins/core/files/ajenti.js
  2. +1 −1 ajenti/plugins/core/widgets/inputs.xslt
@@ -43,7 +43,7 @@ Ajenti = {
params += '&' + e.name + '=' + encodeURIComponent(e.value);
});
- $('select', form).each(function (i,e) {
+ $('select:not([id$="-hints"])', form).each(function (i,e) {
params += "&" + e.name + "=" + encodeURIComponent(e.options[e.selectedIndex].value);
});
@@ -84,7 +84,7 @@
</xsl:template>
<xsl:template match="selecttextinput">
- <input name="{@name}" value="{@value}" id="{@id}" class="{@design}" onkeypress="return noenter()" />
+ <input name="{@name}" value="{@value}" id="{@id}" class="{@design}" onkeypress="return noenter()" type="text"/>
<select onchange="$('#{@id}').val(this.value)" id='{@id}-hints' class="{@design}">
<option selected="">...</option>
<xsl:apply-templates/>

0 comments on commit d92d642

Please sign in to comment.