mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +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
|
// Left side - activates click action
|
||||||
this.button = $j(document.createElement("button"))
|
this.button = $j(document.createElement("button"))
|
||||||
.attr("id", this.internal_ids.button)
|
.attr("id", this.internal_ids.button)
|
||||||
|
.attr("type", "button")
|
||||||
.addClass("ui-widget ui-corner-left").removeClass("ui-corner-all")
|
.addClass("ui-widget ui-corner-left").removeClass("ui-corner-all")
|
||||||
.appendTo(this.buttons);
|
.appendTo(this.buttons);
|
||||||
|
|
||||||
// Right side - shows dropdown
|
// Right side - shows dropdown
|
||||||
this.arrow = $j(document.createElement("button"))
|
this.arrow = $j(document.createElement("button"))
|
||||||
.addClass("ui-widget ui-corner-right").removeClass("ui-corner-all")
|
.addClass("ui-widget ui-corner-right").removeClass("ui-corner-all")
|
||||||
|
.attr("type", "button")
|
||||||
.click(function() {
|
.click(function() {
|
||||||
// Clicking it again hides menu
|
// Clicking it again hides menu
|
||||||
if(self.menu.is(":visible"))
|
if(self.menu.is(":visible"))
|
||||||
|
Loading…
Reference in New Issue
Block a user