Skip to content

Commit 26a6f18

Browse files
committed
submit buttons now work again, even though the submit event is now triggered when hitting enter within the search field.
1 parent eb4997a commit 26a6f18

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

index.html

+2
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ <h1>jQuery UI Multiselect</h1>
157157
<option value="VAT">Vatican City</option>
158158
<option value="VNM">Vietnam</option>
159159
</select>
160+
<br/>
161+
<input type="submit" value="Submit Form"/>
160162
</form>
161163

162164
<script type="text/javascript"

js/ui.multiselect.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,9 @@ $.widget("ui.multiselect", {
282282
})
283283
.keyup(function() {
284284
that._filter.apply(this, [that.availableList]);
285-
}).keyup()
286-
.parents('form').submit(function(){
287-
return false;
288285
});
286+
287+
// TODO: somehow prevent the form from being submitted when ENTER is pressed in the searchfield
289288
}
290289
});
291290

0 commit comments

Comments
 (0)