mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 08:19:45 +01:00
Fix dropdown_button click handler gets called twice
This commit is contained in:
parent
6407379388
commit
4a69b8ddf4
@ -277,6 +277,7 @@ var et2_dropdown_button = (function(){ "use strict"; return et2_inputWidget.exte
|
|||||||
* @returns {Boolean}
|
* @returns {Boolean}
|
||||||
*/
|
*/
|
||||||
click: function(_ev) {
|
click: function(_ev) {
|
||||||
|
if (this.clicked) return;
|
||||||
this.clicked = true;
|
this.clicked = true;
|
||||||
|
|
||||||
if (!this._super.apply(this, arguments))
|
if (!this._super.apply(this, arguments))
|
||||||
@ -285,12 +286,6 @@ var et2_dropdown_button = (function(){ "use strict"; return et2_inputWidget.exte
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Submit the form
|
|
||||||
if (this._type != "buttononly")
|
|
||||||
{
|
|
||||||
this.getInstanceManager().submit(this); //TODO: this only needs to be passed if it's in a datagrid
|
|
||||||
}
|
|
||||||
this.clicked = false;
|
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user