mirror of
https://github.com/wekan/wekan.git
synced 2026-02-26 18:04:06 +01:00
Resolve merge conflicts by accepting PR #6131 changes
Co-authored-by: xet7 <15545+xet7@users.noreply.github.com>
This commit is contained in:
parent
dc0b68ee80
commit
97dd5d2064
257 changed files with 9483 additions and 14103 deletions
|
|
@ -77,8 +77,28 @@ InlinedForm = BlazeComponent.extendComponent({
|
|||
return [
|
||||
{
|
||||
'click .js-close-inlined-form': this.close,
|
||||
'click .js-open-inlined-form': this.open,
|
||||
|
||||
'pointerdown .js-open-inlined-form'(e) {
|
||||
if (Utils.shouldIgnorePointer(e)) {
|
||||
return;
|
||||
}
|
||||
// to measure the click duration
|
||||
$(e.target).data("clickStart", new Date());
|
||||
},
|
||||
'pointerup .js-open-inlined-form'(e) {
|
||||
if(Utils.shouldIgnorePointer(e)) {
|
||||
return;
|
||||
}
|
||||
const start = $(e.target).data("clickStart",);
|
||||
if (!start) {
|
||||
return;
|
||||
}
|
||||
const end = new Date();
|
||||
// 500ms feels reasonable for a simple click
|
||||
if (end - start < 500) {
|
||||
this.open(e);
|
||||
}
|
||||
$(e.target).data("clickStart", null);
|
||||
},
|
||||
// Pressing Ctrl+Enter should submit the form
|
||||
'keydown form textarea'(evt) {
|
||||
if (evt.keyCode === 13 && (evt.metaKey || evt.ctrlKey)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue