Johannes Meyer
437f1b0f0e
Merge pull request #4976 from Icinga/do-not-disable-all-inputs-on-form-submit
...
js: Only disable submit buttons on form submit
(cherry picked from commit 96179182e413b5285ad8be00e7124fd278e300c3)
2023-01-12 11:02:00 +01:00
Johannes Meyer
14d4b18ea3
form.js: Don't ignore autosubmit elements
...
A while ago this already has changed so that autosubmit
responses are guaranteed to be applied. Thus this
exception is now obsolete.
fixes #4942
(cherry picked from commit 8cd892359d1770260e10486554764bcd8c0be797)
2022-12-13 09:18:01 +01:00
raviks789
223e2cfd3a
Fix unresponsive modal submit buttons in Safari
...
(cherry picked from commit 703956c3da8c2d333b34bd08bd8d98de98ed64db)
2021-11-10 09:37:39 +01:00
Ravi Kumar Kempapura Srinivasa
4f1597ccb9
Update selection-info-count immediately on selection
...
The selection-info-count at the left bottom of host or service info needs to be updated immediately after selection.
Hence use the already defined ´count´ to update the selection info on click. Also, avoid refreshing the active columns.
(cherry picked from commit 72e63dd0a18254a20bd7f2b955fdb5695edd602e)
2021-11-09 09:35:17 +01:00
Johannes Meyer
79ee00176e
modal.js: Don't disable inputs before the actual form submit is done
...
fixes Icinga/icingadb-web#376
(cherry picked from commit dcf394eaa692a006012566c1be0db868e1b74675)
2021-11-09 09:33:40 +01:00
Johannes Meyer
e17e28fdda
Merge pull request #4538 from Icinga/fix-multi-modal-windows-and-submit-4525
...
Fix multi modal windows and submit
(cherry picked from commit 8ac8271eddc69d295bdf4efa72800016253c4dce)
2021-11-09 09:33:20 +01:00
Johannes Meyer
95d16c9314
datetime-picker.js: Add support for french
...
(cherry picked from commit 47891ddc72498856ff9b4580462878941af58249)
2021-07-27 11:28:24 +02:00
Johannes Meyer
00a2572db1
datetime-picker.js: Don't do anything with native inputs
...
fixes #4442
(cherry picked from commit bf229c97b8e2f1add700d245e8f405bde6c19caf)
2021-07-27 10:16:29 +02:00
Johannes Meyer
f07283e8b2
datetime-picker.js: Don't append nodes to content..
...
..but individual dynamic containers.
fixes #4461
(cherry picked from commit a4376cd14f563a4d9f29bf354381e9b83ec8f30a)
2021-07-26 11:56:34 +02:00
Johannes Meyer
c623416faf
collapsible.js: Properly setup collapsibles in onLayoutChange
...
(cherry picked from commit 832a1c88c428b13b766cc2a81e62479f88441e78)
2021-07-23 17:04:10 +02:00
Johannes Meyer
23ee95e45f
js: Only show a single datetime picker in each container at a time
2021-06-22 11:22:19 +02:00
Johannes Meyer
7c4488ddc7
input-enrichment: Fix incorrect identification of enriched elements
2021-06-09 15:19:05 +02:00
Johannes Meyer
e794967389
js: Require libs from icinga/icinga-php-library
now
2021-06-01 12:06:58 +02:00
Johannes Meyer
cc0c6fc71b
js: Avoid usage of .matches()
as it isn't available with IE11
2021-05-25 17:19:03 +02:00
Johannes Meyer
4236dd84d9
datetime-picker.js: Show an icon inside the flatpickr input
2021-05-17 13:20:43 +02:00
Johannes Meyer
5a6e3cf32f
datetime-picker.js: Cleanup unused flatpickr instances
2021-05-17 13:20:43 +02:00
Johannes Meyer
e704309c41
modal.js: Trigger close-modal
when.. closing a modal
2021-05-17 13:20:43 +02:00
Johannes Meyer
90a056d988
datetime-picker.js: Append flatpickr container not to body
...
The body isn't cleared without a full reload. This way the
flatpickr container resides in the same container as the
input's form.
2021-05-17 13:20:43 +02:00
Johannes Meyer
162d898d42
js: Introduce DatetimePicker
behavior
...
Utilizes `flatpickr` from ipl-web.
2021-05-17 13:20:42 +02:00
Johannes Meyer
54720a1fc1
collapsible.js: Fix flickering
2021-05-12 09:06:26 +02:00
Johannes Meyer
f50c095e15
js: Support custom collapsible controls in place of the default one
2021-05-05 17:59:12 +02:00
Johannes Meyer
94a16056d7
js: Speedup collapsible.js by a factor of 10
...
It's still relatively slow as it forces a reflow in the
browser if there are many collapsibles in the view.
I didn't manage to identify the issue yet, but I left
a TODO at the location that's responsible for it.
2021-03-30 09:31:57 +02:00
Johannes Meyer
25263e767b
js: Allow to disable persistence for collapsibles
2021-03-30 09:27:22 +02:00
Johannes Meyer
07251e6d5e
modal.js: Really only close the modal if the user clicks outside of it
...
The click event fires only after the mouse button is released, which
may happen on the outside, after the user tried to select something
and overrun accidentally. A close is then not desired as the user
may loose input. The mousedown event fires right when the button
is pressed and suffices on the outside of the modal.
2021-03-09 08:52:10 +01:00
Johannes Meyer
7790a72efa
js: Only close a modal if an ESC press is not handled otherwise
2021-03-09 08:52:10 +01:00
Johannes Meyer
b4531b6b45
js: Add support for the search-editor
input enrichment
...
Also makes it possible to enrich inputs in modals
2021-03-09 08:52:10 +01:00
Johannes Meyer
e4ff391b1a
js: Trigger a rendered
event if SearchBar editor is opened
2021-03-09 08:52:10 +01:00
Johannes Meyer
f44ea884bd
js: Suspend auto refresh once search-bar
enrichment opens its editor
2021-03-09 08:52:10 +01:00
Johannes Meyer
4366f93127
js: Support new input enrichment type search-bar
2021-03-09 08:52:10 +01:00
Johannes Meyer
4d4f5b3a69
js: Don't serve scripts utilizing ECMA2016+ features
...
i.e. library javascript assets
2021-02-22 16:01:42 +01:00
Johannes Meyer
57b4a31bc3
js: Don't navigate right when opening a modal
...
Isn't the prettiest fix. I would have liked to completely
remove the target preparation from `getLinkTargetFor`.
But this is the easiest fix since it's only for modals
that preparation is not desired. It's also the most
compatible change.
2021-02-17 12:51:26 +01:00
Johannes Meyer
defd8132aa
form.js: Don't abort content updates in case of auto submits
2021-02-09 09:13:11 +01:00
Johannes Meyer
eff5c4e1d1
input-enrichment.js: Import required classes with require()
2021-01-14 11:57:24 +01:00
Johannes Meyer
dc5e39ef1c
input-enrichment.js: Add method update()
2021-01-14 11:57:24 +01:00
Johannes Meyer
67de8a079a
js: Initialize all types of input enrichments
2021-01-14 11:57:24 +01:00
Johannes Meyer
fcd0a0a698
complete.js: Keep IE11 compatibility
2021-01-14 11:57:06 +01:00
Johannes Meyer
3c41c14653
complete.js: Properly manage enrichment persistence
2021-01-14 11:57:06 +01:00
Johannes Meyer
d19a55311b
complete.js: Keep used terms in case of an autorefresh
2021-01-14 11:57:06 +01:00
Johannes Meyer
dad0122f11
js: Introduce behavior complete.js
2021-01-14 11:56:06 +01:00
Johannes Meyer
6197d5f0af
form.js: Only track real value changes and reset upon reverts
2021-01-13 17:19:18 +01:00
Johannes Meyer
37fb455977
js: Drop sparkline lib and behavior
2020-09-28 16:39:54 +02:00
Johannes Meyer
74a9a8edf0
modal.js: Request compact content with showCompact
2020-06-04 08:50:41 +02:00
Yonas Habteab
0432b7d50d
Revert "JS: Do not apply 'menu-hovered' on #layout"
...
This reverts commit 5443bfe9fa02abdff8e785d8c3186e609f317c54.
2020-02-28 11:36:04 +01:00
Johannes Meyer
fd97e8b056
actiontable.js: Properly handle encoded filter values
2020-01-30 08:31:06 +01:00
Johannes Meyer
8bc84a5f9e
js: Teach the url parsing a final lesson about query strings
...
`utils.parseParams()` now returns an array instead of an object.
This may require some changes in modules using this directly or
by `utils.parseUrl().params`
refs #4056
2020-01-16 13:45:10 +01:00
Johannes Meyer
db69f23c20
modal.js: Don't push form submits to the history
2020-01-15 08:41:34 +01:00
Johannes Meyer
60dfbcbad9
Remove remaining usages of #menu-container
2019-12-06 15:39:14 +01:00
Johannes Meyer
4af48c797d
js: Remove ui.fixControls()
and ui.initializeControls()
...
Hooray!
2019-12-06 15:39:14 +01:00
Johannes Meyer
83d6a258ec
application-state.js: Remove redundant rendered callback
2019-12-06 15:39:14 +01:00
Florian Strohmaier
5443bfe9fa
JS: Do not apply 'menu-hovered' on #layout
...
refs #3904
2019-12-06 15:36:34 +01:00