Commit Graph

12 Commits

Author SHA1 Message Date
Dominik Csapak
aea77b2c69 (partially) fix #1223: add touchscreen override for extjs
the combination of firefox, touchscreen, mouse input and extjs
prevents normal click/touch input for buttons, lists, etc.

the workaround on firefox was to set
dom.w3c_touch_events.enabled
to 0 (in about:config)

or to upgrade to extjs >= 6.5.1 (of which there is no gpl release as of now)

so we introduce that workaround as it seems to not disrupt 'normal'
browsers and non-touchscreen devices

we then still have an issue with scrolling though, since extjs
now expects the user to drag the content instead of using the wheel

but it is still better than a completely non working interface

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-03-30 10:10:46 +02:00
Thomas Lamprecht
5106364829 toolkit: remove PVE specific VType
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-17 12:21:04 +01:00
Thomas Lamprecht
8f449655ad toolkit: add MacPrefix vtype
useful for our PVE dc/options panel

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-17 12:20:50 +01:00
Thomas Lamprecht
1fb41f2e36 toolkit: fix #1516: mouse-scrolling of overflowhandlers in firefox
this is a workaround for scrolling in toolbars, etc. in firefox with
the mouse.
while the result is not very "pretty", it maintains the old behaviour
for all other browsers and makes it work in firefox

we may drop this when we update to a new extjs release

commit 484bf3f29e58d0f96c65e6dca6b5dd95eaea180c from pve-manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-11 14:45:48 +01:00
Thomas Lamprecht
47d1c80c37 toolkit: fix #1510: don't scroll back to focus when view refreshes
adds a workaround, so that we restore the scroll position when we
restore the focus. Fixies an annoying issue where, if a user had an
ellemtn selected, scrolled down and then a store refresh re-rendered
the view it was scrolled back to the selected item and the user lost
his scrolling position.

Add also the 'jumpToFocus' flag to allow enabling the old behaviour

commit e6f2a94f4fff3c125e8406a21d8d6159aca1421e from pve-manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-11 14:45:48 +01:00
Thomas Lamprecht
3c15824972 toolkit: fix #1307: don\'t use language dependent separator
by default, extjs submits the language dependent decimal separator,
e.g., ',' (comma) for german and '.' (dot) for english.

We always want the dot.

commit 5c660b6d1302a5fbb3dcf477cf8b5adc9f798530 from pve-manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-11 14:45:48 +01:00
Thomas Lamprecht
9503d4570e toolkit: remove unneeded applyEmptyText
The parent method does this already in ExtJS 6

commit d19ffc1bb078e42a042c5c73797d713aa9cf9bcc from pve-manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-11 14:45:48 +01:00
Dominik Csapak
a2d8b9a99a add textarea/enter workaround
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-17 09:08:28 +02:00
Dietmar Maurer
a55813d6d7 do not override getSubmitValue, add note about strange semantics 2017-03-30 06:30:14 +02:00
Dietmar Maurer
36704a2fcc add VType for password confirmation 2017-03-29 18:02:23 +02:00
Dietmar Maurer
1d9804a953 add missing setSubmitValue() for text fields 2017-03-29 17:46:57 +02:00
Dietmar Maurer
bb64de6e76 add Toolkit.js
Copied from pve-manager
2017-01-31 17:32:18 +01:00