mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Add button type to et2_dropdown_buttons to stop default browser behaviour.
Fixes filters get cleared when pressing enter in entryfilter
This commit is contained in:
parent
db74398622
commit
5edd9b902a
@ -146,12 +146,14 @@ var et2_dropdown_button = et2_inputWidget.extend(
|
||||
// Left side - activates click action
|
||||
this.button = $j(document.createElement("button"))
|
||||
.attr("id", this.internal_ids.button)
|
||||
.attr("type", "button")
|
||||
.addClass("ui-widget ui-corner-left").removeClass("ui-corner-all")
|
||||
.appendTo(this.buttons);
|
||||
|
||||
// Right side - shows dropdown
|
||||
this.arrow = $j(document.createElement("button"))
|
||||
.addClass("ui-widget ui-corner-right").removeClass("ui-corner-all")
|
||||
.attr("type", "button")
|
||||
.click(function() {
|
||||
// Clicking it again hides menu
|
||||
if(self.menu.is(":visible"))
|
||||
|
Loading…
Reference in New Issue
Block a user