244 Commits

Author SHA1 Message Date
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
Florian Strohmaier
7864150054 JS: Fix navigation flyout not fading out after mouseout
refs #3904
2019-12-06 15:36:34 +01:00
Florian Strohmaier
c06aec0471 Remove unused code 2019-12-06 15:36:34 +01:00
Johannes Meyer
47c2a8bdc1 js: Utilize utils.objectsEqual() in actiontable.select() 2019-11-20 16:22:56 +01:00
Johannes Meyer
2dbf9ca8ab js: Properly parse/decode query params in utils.parseParams() 2019-11-20 16:22:56 +01:00
Johannes Meyer
a13d2b1e48 js: Introduce behavior modal.js 2019-11-04 12:46:30 +01:00
Johannes Meyer
50bf126d36 js: Move function events.getLinkTargetFor to loader.js 2019-11-04 12:46:30 +01:00
Johannes Meyer
f98f988aff Remove tristate form element 2019-09-23 08:36:24 +02:00
Johannes Meyer
b31dd77812
Merge pull request #3676 from Icinga/feature/form-styling
Improve look of our forms
2019-07-30 08:26:08 +02:00
Eric Lippmann
62d4e73d5a Use session storage for sidebar state
The sidebar state is now maintained per tab/window because users view
different things in different tabs/windows. E.g. users work with a
specific module constantly clicking through the menu while having
other tabs/windows with some important dashboards open.
When the sidebar is closed in one tab/widnow, it should not close
the sidebar in the other tabs/windows.
2019-07-30 08:14:49 +02:00
Johannes Meyer
eb0d808aec collapsible.js: Enhance height calculations
`data-visible-height` now only covers the actual content height
2019-07-29 16:02:48 +02:00
Johannes Meyer
8cd6a46388 collapsible.js: Add support for custom control elements 2019-07-29 10:19:29 +02:00
Johannes Meyer
a4848803c8 collapsible.js: Listen on #layout for rendered events 2019-07-26 16:23:18 +02:00
Johannes Meyer
91a8bdf786 collapsible.js: Don't collapse until at least twice the visible space is required 2019-07-26 07:36:17 +02:00
Johannes Meyer
74cb0ef3c9 collapsible.js: Don't enforce data-visible-rows for tables and lists 2019-07-26 07:36:17 +02:00
Johannes Meyer
dd4cfaba50 navigation.js: Store and load sidebar collapse state from localStorage
resolves #3628
2019-07-18 09:43:22 +02:00
Johannes Meyer
f8d3f43965 js: Drop vendor library tipsy 2019-07-18 07:57:14 +02:00
Johannes Meyer
b168c3d7db js: Don't use jquery.focus shorthand anymore, but icinga.ui.focusElement 2019-07-18 07:57:14 +02:00
Florian Strohmaier
5fe264be6a JS: Fix errors
refs #3813
2019-07-18 07:56:09 +02:00
Johannes Meyer
5c290e1b68 collapsible.js: Rename event callbacks
`onExternalCollapse` => `onCollapse`
`onExternalExpansion` => `onExpand`
2019-07-17 13:12:41 +02:00
Johannes Meyer
2bf050f57d storage.js: Don't use the native event mechanism but a simple callback handling 2019-07-17 13:12:41 +02:00
Johannes Meyer
c05291296a collapsible.js: Only apply external expansions/collapses if necessary 2019-07-17 13:12:41 +02:00
Johannes Meyer
0f16e20d92 storage.js: Write null instead of undefined to the storage
`undefined` causes the key to be ignored by JSON.stringify
2019-07-17 13:12:41 +02:00
Johannes Meyer
cbd1e1bb92 storage.js: Drop StorageAwareSet and replace it with StorageAwareMap 2019-07-17 13:12:41 +02:00
Johannes Meyer
95dee43f5b storage.js: Just use a factory to create behavior storages 2019-07-17 13:12:41 +02:00
Johannes Meyer
3b7a1a5ab4 storage.js: Add method on to StorageAwareSet 2019-07-17 13:12:41 +02:00
Johannes Meyer
ffec2ebd4c collapsible.js: Utilize storage.js 2019-07-17 13:12:41 +02:00
Johannes Meyer
beae5b5921 collapsible.js: Update collapsible states when the layout changes 2019-07-17 13:12:41 +02:00
Johannes Meyer
0140fdf485 collapsible.js: Use scrollHeight to measure a container's actual height 2019-07-17 13:12:41 +02:00
Johannes Meyer
a99f653a63 collapsible.js: Don't process collapsible containers multiple times 2019-07-17 13:12:41 +02:00