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 3b06f06a04
.
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 f517c62fde
, reversing
changes made to d1fd7e4be7
.
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
Alexander A. Klimov
3363e6795f
JS: use $(parent).find(child) instead of $(child, parent)
...
refs #10704
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2016-11-21 10:46:31 +01:00
Thomas Gelf
0f58776b4e
actiontable: gracefully clear and improve...
...
...state preservation
refs #13115
2016-11-16 09:38:44 +00:00
Alexander A. Klimov
cf5e26c56c
Avoid local variable name `self' in ui.js
...
refs #10703
2016-09-01 16:32:31 +02:00
Eric Lippmann
31adfb8a9f
Don't add the port twice when reloading CSS
2016-04-06 12:09:49 +02:00
Florian Strohmaier
9e0bee5006
Fix mispositioned mobile menu icon
...
fixes #11099
2016-03-31 14:00:27 +02:00
Thomas Gelf
28204762ab
js: fix urls for dynamic css/js reloads
2016-02-29 21:40:48 +01:00
Florian Strohmaier
0c34c20640
Prepare close-container for behavior implementation
...
refs #8590
2016-02-27 15:07:10 +01:00