mirror of
https://github.com/wekan/wekan.git
synced 2026-03-09 23:22:33 +01:00
Reverted New UI Design of WeKan v8.29 and added more fixes and performance improvements.
Thanks to xet7 !
This commit is contained in:
parent
d152d8fc1b
commit
1b8b8d2eef
196 changed files with 17659 additions and 10028 deletions
|
|
@ -77,28 +77,8 @@ InlinedForm = BlazeComponent.extendComponent({
|
|||
return [
|
||||
{
|
||||
'click .js-close-inlined-form': this.close,
|
||||
'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);
|
||||
},
|
||||
'click .js-open-inlined-form': this.open,
|
||||
|
||||
// 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