146 Commits

Author SHA1 Message Date
Johannes Meyer
10d3fb64f9 js: Automatically transform .time-until widgets into .time-ago ones 2023-06-22 15:02:37 +02:00
Johannes Meyer
96460a2027 history.js: Properly handle data attributes upon navigation
I've rewritten `applyLocationBar` basically. It now also just
moves a column if only the location has changed, not the url.
2022-06-14 16:15:16 +02:00
Johannes Meyer
e602db3073 ui.js: Don't trigger layout-change before the app is initialized 2022-05-27 14:21:47 +02:00
Johannes Meyer
95850750cf js: Introduce new event css-reloaded 2022-03-08 16:05:32 +01:00
Johannes Meyer
a2949fad7d js: Properly reset container ids when moving content
fixes #4554
2022-02-04 18:14:40 +01:00
Johannes Meyer
f734d28060 ui.js: Allow to disable scrolling in method focusElement 2021-11-04 14:25:07 +01:00
Johannes Meyer
54acf35c69 Revert "js: Don't bypass our cache when reloading CSS"
This reverts commit 1c7e5b31bfaf83517edfbf33abb59cd291a43413.

fixes #4417
refs #4340
2021-07-02 14:46:22 +02:00
Johannes Meyer
c01e0f9dc8 js: Don't add scheme and location when reloading CSS
It's not necessary and may (has) lead to the following case:
`http://localhost/http://localhost/icingaweb2/css/icinga.min.css`
2021-06-18 17:19:18 +02:00
Johannes Meyer
1c7e5b31bf js: Don't bypass our cache when reloading CSS
The timestamp previously added, forces the browser to ignore
its own cache and thus it doesn't transmit the `If-None-Match`
header. We then re-calculate the the CSS possibly for no reason.
If there is a re-calculation indeed required it should be still
done now since the ETag transmitted by the browser is outdated.

refs #4340
2021-06-16 14:59:19 +02: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
ca74e14812 ui.js: Don't require jQuery objects in getUniqueContainerId 2021-01-13 17:18:55 +01:00
Eric Lippmann
0355b20da0 JS: Respect container in Icinga.Ui.focusElement()
Though IDs should be unique across the whole page, focusElement() must
not fail if there is the same anchor in the left and right column.
focusElement() now also respects the container when searching the
element to focus by ID.
2020-01-16 10:47:28 +01:00
Johannes Meyer
63452ba250 js: Enhance scroll location detection in ui.focusElement() 2019-12-13 16:13:13 +01:00
Johannes Meyer
e61eb6f160 ui: Fix sidebar issues in minimal layout
Was completely broken even prior the removal of `ui.fixControls()`..
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
Florian Strohmaier
c6c77aa411 JS: Remove unused code 2019-12-06 15:36:34 +01:00
Florian Strohmaier
516bbc1ef0 JS: Fix sidebar animating out 2019-12-06 15:36:34 +01:00
Florian Strohmaier
0da89bb977 JS: Reinstate mobile menu 2019-12-06 15:36:34 +01:00
Florian Strohmaier
cfbeb26354 JS: Disable fixControls() 2019-12-06 15:36:34 +01:00
Johannes Meyer
329f54cc96 ui.js: Don't generate a container id if its parent is #col1
refs #3953
2019-09-25 10:34:24 +02:00
Johannes Meyer
f98f988aff Remove tristate form element 2019-09-23 08:36:24 +02:00
Johannes Meyer
f1db972cc5 ui.js: Only set tabindex=-1 on elements which are otherwise not focusable 2019-07-22 13:41:52 +02:00
Johannes Meyer
ec3a6b0572 ui.js: Don't use jquery blur shorthand but the element's native method 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
Johannes Meyer
f844094475 ui.js: Don't use deprecated .size() method but property .length 2019-07-18 07:57:14 +02:00
Johannes Meyer
9f858a9073 ui.js: Trigger event layout-change when the layout changes 2019-07-17 13:12:41 +02:00
Florian Strohmaier
574c76ab42 Improve mobile menu 2019-05-06 14:49:41 +02:00
Johannes Meyer
f72aa291bc
Merge pull request #3610 from Icinga/fix/window-id-cannot-be-used-to-differentiate-containers-3609
Fix window id cannot be used to differentiate containers
2019-04-17 11:38:48 +02:00
Johannes Meyer
4900040d47 js: Restore previous title when closing right column
fixes #3654
2019-04-16 09:29:42 +02:00
Johannes Meyer
d8c4fcc517
Merge pull request #3661 from Icinga/feature/preserve-scroll-position-upon-form-submits
Preserve scroll position upon form submits
2019-04-16 08:04:15 +02:00
Johannes Meyer
f54f2f8627 js: Prevent flickering when refreshing scrolled content 2019-04-15 14:27:14 +02:00
Jennifer Mourek
b3b80fdc31 Make active first-level nav items better distinguishable 2019-03-20 11:07:39 +01:00
Eric Lippmann
f8295ea825 Revert "Fix menu flickering on reload and broken layout w/o JS"
This reverts commit 3b06f06a04f9de4b90b208133232767ab5b155b6.

Breaks announcements.
2018-11-20 10:17:27 +01:00
Eric Lippmann
3b06f06a04 Fix menu flickering on reload and broken layout w/o JS
fixes #3629
fixes #3630
2018-11-20 10:06:41 +01:00
Johannes Meyer
c8a49414b1 js: Append a unique container id to the Window-Id
Generates a semi-random id for containers other than the menu and col1.
This id is then appended to the Window-Id of every request separated by
an underscore: `window-id_container-id`

refs #3609
2018-11-07 12:44:25 +01:00
Johannes Meyer
8212c51f8d js: Already set window.name prior bootstrapping our js runtime
Makes sure that the Window-Id already generated and utilized by the
server on the first request is used by subsequent requests instead
of a new one.

Also avoids that concurrent running id-less requests compete about
which one may set his assigned id. Now any subsequent request
already transmits the id assigned to the first one.

And it resets `window.name` in case the user performs a manual
refresh so that the id used by the server is set/utilized.

refs #3609
2018-11-07 09:13:16 +01:00
Eric Lippmann
e77c3c8169 Don't take fullscreen into account when detecting the layout
The fullscreen-layout class is just a layout modifier.
2017-11-29 15:12:51 +01:00
Eric Lippmann
47ca9bd32f JS: Fix sidebar position 2017-11-27 15:12:15 +01:00
Thomas Gelf
cc41fc25f3 js, layout: detect initial layout on load
fixes #3107
2017-11-27 13:45:43 +01:00
Eric Lippmann
459768ba4e Fix JS issues with our new menu 2017-11-27 13:26:28 +01:00
Eric Lippmann
4c32935c48 Increase header logo height 2017-11-21 23:04:12 +01:00
Thomas Gelf
0edcfdee33 icinga/ui.js: don't spend time for UI debug...
...while not being shown.

fixes #3115
2017-11-21 12:27:15 +01:00
Florian Strohmaier
aab32214d6 JS: Close menu correctly after searching on iOS
fixes #2922
2017-09-21 17:52:51 +02:00
Eric Lippmann
fe12ed05e3 Fix menu height when switching back from mobile layout
Fixes #2841
2017-07-28 13:44:21 +02:00
Florian Strohmaier
14b325aff4 Fix header height when announces shown 2016-12-13 13:53:23 +01:00
Florian Strohmaier
f0bc12d2c0 Fix jumping header when reloading
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2016-12-13 12:14:01 +01:00
Eric Lippmann
aa559c4636 Merge branch 'bugfix/actiontable-row-handling-13115'
fixes #13115
2016-12-09 13:49:27 +01:00
Florian Strohmaier
bd5a2ebaa3 Move status summary in the host and service list views to the bottom of the page
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2016-11-24 10:42:14 +01:00
Eric Lippmann
875d42c0a6 Revert "Merge branch 'bugfix/always-use-the-jquery-find-method-w/-node-context-10704'"
This reverts commit f517c62fdec880d5b905212ef4dbfe23a5cd033e, reversing
changes made to d1fd7e4be78f3dda9734027dda53114b71a7a46d.

refs #10704
2016-11-21 14:34:58 +01:00
Eric Lippmann
f517c62fde Merge branch 'bugfix/always-use-the-jquery-find-method-w/-node-context-10704'
fixes #10704
2016-11-21 14:33:43 +01:00