Johannes Meyer
03fc052749
storage.js: Directly use scope `window` to access `localStorage`
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
e2cddc2d46
js: Introduce storage.js, a localStorage abstraction layer
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
9f858a9073
ui.js: Trigger event `layout-change` when the layout changes
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
Johannes Meyer
fc782b59a9
collapsible.js: Don't collapse containers which are near to the maximum
2019-07-17 13:12:41 +02:00
Johannes Meyer
754f45566a
collapsible.js: Make storage working with multiple tabs
2019-07-17 13:12:41 +02:00
Johannes Meyer
a642117c8a
collapsible.js: Remove superflous spaces after the `function` keyword
2019-07-17 13:12:41 +02:00
Johannes Meyer
9a6b1cffd6
collapsible.js: Don't use Set features which IE11 doesn't support
2019-07-17 13:12:41 +02:00
Johannes Meyer
ec2a6b5c78
collapsible.js: Use namespace `behavior` for local storage entries
2019-07-17 13:12:41 +02:00
Johannes Meyer
1748404efe
collapsible.js: Enhance how we'll utilize `localStorage`
2019-07-17 13:12:41 +02:00
Johannes Meyer
6f28a5c3e1
collapsible.js: Rename `height` to `visible-height`
2019-07-17 13:12:41 +02:00
Johannes Meyer
1ae1dc387f
collapsible.js: Rename `numofrows` to `visible-rows`
2019-07-17 13:12:41 +02:00
Johannes Meyer
b8bdd743a2
collapsible.js: Remove useless `> tbody > th` row selector
2019-07-17 13:12:41 +02:00
Johannes Meyer
ba44240b68
collapsible.js: Store and load states form localStorage
2019-07-17 13:12:41 +02:00
Johannes Meyer
3122af2838
collapsible.js: Properly track a collapsible's state across navigation
2019-07-17 13:12:41 +02:00
Johannes Meyer
0ed030410f
collapsible.js: Listen for rendered events on all containers
...
not just #col2
2019-07-17 13:12:41 +02:00
Johannes Meyer
0574f44bd9
colllapsibleContainer.js: Rename to collapsible.js
2019-07-17 13:12:41 +02:00
Johannes Meyer
d6f7582df6
collapsibleContainer.js: Update documentation
2019-07-17 13:12:41 +02:00
Johannes Meyer
1032a944b4
collapsibleContainer.js: Properly set an collapsible's height
2019-07-17 13:12:41 +02:00
Johannes Meyer
618ca25aec
collapsibleContainer.js: Simplify implementation and make it more flexible
...
Handling is ok though the styles are outdated now and not working
2019-07-17 13:12:41 +02:00
Johannes Meyer
ffe638ee36
collapsibleContainer.js: Don't expect a data attribute for a container's id
2019-07-17 13:12:41 +02:00
Johannes Meyer
e6e43d07bf
collapsibleContainer.js: Cleanup and streamline behavior implementation
2019-07-17 13:12:41 +02:00
Johannes Meyer
66084d6d94
collapsibleContainer.js: Adjust id handling
...
Id's are unique. Making this assumption is fine since anyone
not abiding by this isn't my problem.
2019-07-17 13:12:41 +02:00
Florian Strohmaier
b73a608742
JS: Check collapsible containers for unique collapsible-id
2019-07-17 13:12:41 +02:00
Florian Strohmaier
d3e4fb6552
JS: Add code documentation
2019-07-17 13:12:41 +02:00
Florian Strohmaier
545d3355a9
JS: Use can-collapse to flag containers with sufficient height
2019-07-17 13:12:41 +02:00
Florian Strohmaier
b07ffd4987
JS: Implement collapsible-container behavior
2019-07-17 13:12:41 +02:00
Johannes Meyer
f6d40a9d1c
loader.js: Directly set the window's title for full layout requests
...
refs #3851
2019-07-15 08:24:44 +02:00
Loei Petrus Marogi
302422d814
Allow to fully customize click and submit handling
...
resolves #3767
2019-05-27 14:34:38 +02:00
Johannes Meyer
b4979b75a9
Merge pull request #3723 from Icinga/feature/ctrl-click-does-not-open-links-in-new-tab-3722
...
Make ctrl-click open new tab
2019-05-24 13:01:52 +02:00
Jennifer Mourek
b6f8df5ddc
Disallow new tab opening on anything but anchors
2019-05-24 11:09:05 +02:00
Johannes Meyer
82d6b22697
Merge pull request #3775 from Icinga/bugfix/improve-mobile-menu
...
Improve mobile menu
2019-05-24 10:56:02 +02:00
Jennifer Mourek
1c666d88e6
Prevent new tab opening in tables and href="#"
2019-05-23 11:04:11 +02:00
Jennifer Mourek
26d696372f
Exclude multiselect rows from the open new tab feature
2019-05-21 15:06:16 +02:00
Florian Strohmaier
574c76ab42
Improve mobile menu
2019-05-06 14:49:41 +02:00
Johannes Meyer
43c87d2388
loader.js: Return in onComplete upon handled redirects
...
Got changed with f12a5741b8
. Triggering
rendered events for stuff that's never displayed doesn't seem right.
2019-04-30 09:23:59 +02:00
Johannes Meyer
50f5aa0ac3
Revert "utils.js: Utilize ids of forms and elements in getCssPath"
...
This reverts commit c835f02953
.
2019-04-25 10:11:45 +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
c835f02953
utils.js: Utilize ids of forms and elements in getCssPath
...
They're now reliable again :)
fixes #2238
2019-04-17 11:25:10 +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
cb3528a7be
js: Don't scroll to re-focused elements after auto-refreshes
...
refs #2048
refs #3295
refs #3492
refs #3518
2019-04-15 15:42:14 +02:00
Johannes Meyer
f54f2f8627
js: Prevent flickering when refreshing scrolled content
2019-04-15 14:27:14 +02:00
Eric Lippmann
915c7b8fe5
Merge pull request #3504 from Icinga/fix/collapsible-sidebar-issues-3187
...
Fix collapsible sidebar issues
2019-03-21 09:09:27 +01:00
Jennifer Mourek
2c1abe13a1
Make ctrl-click open new tab
...
refs #3722
2019-03-20 14:19:14 +01:00
Jennifer Mourek
b3b80fdc31
Make active first-level nav items better distinguishable
2019-03-20 11:07:39 +01:00
Jennifer Mourek
2e5515274e
Adjust sidebar lug size and reduce flyout delay
2019-03-20 11:07:39 +01:00
Johannes Meyer
27569d09d8
loader.js: Preserve scroll position also for form submits
...
Restores the scroll position if:
* it's been a POST request
* the source and target url path is the same
* the target's url params do not change significantly
2019-01-10 15:32:28 +01:00
Johannes Meyer
d2214ef0e4
loader.js: Pass-through previous request when peforming a redirection
2019-01-10 15:31:39 +01:00
Johannes Meyer
29a8184548
loader.js: Remember a request's method
2019-01-10 15:30:48 +01:00
Johannes Meyer
2a5a403573
utils.js: Add new method objectsEqual()
2019-01-10 15:30:05 +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
Eric Lippmann
f0f9ab0eb7
JS: Simplify Date.isDst()
2018-11-16 09:00:32 +01:00
Eric Lippmann
fbc7598a6b
JS: Simplify Date.getStdTimezoneOffset()
...
refs #3607
2018-11-16 09:00:32 +01:00
h0rmiga
d9b337a213
JS: Fix DST detection
...
refs #3607
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2018-11-16 09:00:19 +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
Florian Strohmaier
d1cbc4b05c
JS: Remove excessive scroll events
2018-10-16 15:41:33 +02:00
Eric Lippmann
84e0c0c4fb
Merge pull request #3518 from Icinga/fix/anchor-navigation-not-working-3492
...
loader.js: Make anchor navigation working again
2018-07-16 10:00:35 +02:00
Johannes Meyer
5f4aa1e296
loader.js: Make anchor navigation working again
...
fixes #3492
2018-07-10 10:50:31 +02:00
Eric Lippmann
d18d05ccee
Introduce ApplicationStateHook
...
refs #2835
2018-07-09 16:28:25 +02:00
Johannes Meyer
990df95f36
loader.js: Allow to force HTTP to be used for JS redirection
2018-07-04 14:44:03 +02:00
Johannes Meyer
9294c830f8
tipsy: Don't use opacity but rgba to avoid having transparent text
...
refs #3418
2018-04-26 13:39:50 +02:00
Eric Lippmann
7fc9d7995f
Merge pull request #3425 from Icinga/fix/avoid-unnecessary-search-requests-3348
...
Don't search as long as the user is typing
2018-04-25 03:08:47 -04:00
Johannes Meyer
c2b3bbb87b
events.js: Don't search as long as the user is typing
...
500ms is for the average typist. Still fast enough, imho.
refs #3348
2018-04-24 12:33:04 +02:00
Johannes Meyer
9857021d2c
Revert "loader.js: place focus at the end of text inputs"
...
This reverts commit d1fd7e4be7
.
Browsers seem to do this on their own natively. Way better.
refs #3348
2018-04-24 11:18:10 +02:00
Alexander A. Klimov
41b105136d
Preserve collapsed FilterEditor subtrees across auto-refreshes
...
refs #2964
2018-04-06 13:54:51 +02:00
Alexander A. Klimov
38438449e4
Revert "Performance data: render pie charts without freezing the UI"
...
This reverts commit f2b2b6a91a
.
refs #3344
2018-04-06 09:36:24 +02:00
Johannes Meyer
7483a168f9
actiontable.js: Use `event.currentTarget` instead of the closest tr
...
This event is triggered due to delegation. If any onclick event is able
to bubble up this far that it gets triggered we can safely use whatever
it has been triggered for. (i.e. it can only be a tr[href])
refs #3298
2018-01-22 13:23:28 +01:00
lippserd
0b9ae48530
Merge pull request #3288 from Icinga/bugfix/performance-problem-lots-of-performance-data-2894
...
Performance data: render pie charts without freezing the UI
2018-01-19 16:16:54 +01:00
Alexander A. Klimov
f2b2b6a91a
Performance data: render pie charts without freezing the UI
...
refs #2894
2018-01-19 16:14:42 +01:00
Alexander A. Klimov
68870ca411
Icinga.Loader.prototype.renderContentToContainer(): preserve scroll position despite the focus
2018-01-19 15:32:54 +01:00
lippserd
f92c35c193
Merge pull request #3262 from Icinga/bugfix/browser-history-multiple-columns-2779
...
Make navigation via browser history working as expected
2018-01-17 12:03:03 +01:00
Alexander A. Klimov
5a7ecb825a
Drop unneccessary browser history steps
...
... which are non-desired columns contents combinations
refs #2779
2018-01-16 12:25:22 +01:00
Alexander A. Klimov
1f61744b57
Make search reset control working across auto-refresh
...
refs #2753
2018-01-15 15:09:50 +01:00
lippserd
83faa2671c
Merge pull request #3174 from Icinga/fix/fullscreen-layout
...
Don't discard fullscreen when detecting the layout
2017-12-15 10:13:05 +01:00
Eric Lippmann
cb83a7dea3
JS: Always request application-state
...
Icinga Web 2 version 2.5.0 suspends auto-refresh if the tab is inactive.
This also pauses the application-state requests which are intended to refresh the session and announcements.
If a tab is inactive for longer than the PHP session timeout (session.gc_maxlifetime in php.ini), users are automatically logged out.
With this patch Web 2 will always request application-state. Even if auto-refresh is disabled.
2017-12-04 14:25:23 +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
Alexander A. Klimov
48133aae91
Flyover: select #main instead of div#main
2017-11-27 16:51:55 +01:00
Alexander A. Klimov
59054dd01c
Collapse all expanded flyovers on any click not inside any flyover
2017-11-27 16:35:18 +01:00
Alexander A. Klimov
8afd2f8a32
Handle multiple toggles per flyover
2017-11-27 16:32:52 +01:00
Eric Lippmann
47ca9bd32f
JS: Fix sidebar position
2017-11-27 15:12:15 +01:00
lippserd
8f1f8d4471
Merge pull request #3100 from Icinga/feature/expandable-content
...
Implement persistent "Show more" spoilers
2017-11-27 14:44:15 +01:00
Alexander A. Klimov
6409bdc074
Implement persistent "Show more" spoilers
2017-11-27 14:18:42 +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
544e92ac4a
Fix issues w/ scrollbars in the menu
2017-11-27 13:26:23 +01:00
Eric Lippmann
4c32935c48
Increase header logo height
2017-11-21 23:04:12 +01:00
Florian Strohmaier
147587da90
Allow to collapse/expand the sidebar via a toggle button at the bottom of the sidebar
2017-11-21 23:04:12 +01:00
Eric Lippmann
807fbdb131
Reduce flyout menu JS complexity
2017-11-21 23:04:12 +01:00
Alexander A. Klimov
bc4b9fb4e0
Make flyover responsive
2017-11-21 18:11:05 +01:00
lippserd
df1e7683c8
Merge pull request #3041 from Icinga/feature/auto-detaching-dom-elements-3039
...
Implement auto-detaching DOM elements
2017-11-21 16:48:59 +01:00
Alexander A. Klimov
e9c189fa38
Close all flyovers on click outside a flyover
2017-11-21 16:37:52 +01:00
lippserd
7fd9f23f6c
Merge pull request #3116 from Icinga/fix/no-debug-rendering-while-disabled-3115
...
icinga/ui.js: don't spend time for UI debug...
2017-11-21 14:09:12 +01:00
Alexander A. Klimov
c7ffb41b02
Implement togglable flyover
...
refs #3024
2017-11-21 14:05:12 +01:00
Alexander A. Klimov
b000c1ae4a
Implement auto-detaching DOM elements
...
refs #3039
2017-11-21 13:17:55 +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
lippserd
27867494ff
Merge pull request #2798 from towolf/suspend-autorefresh-when-invisible
...
Disable auto-refresh when page is not visible
2017-11-06 09:48:31 +01:00
Jennifer Mourek
3a8ba39abd
Disable auto-refresh when page is not visible
...
credits to @towolf
Icinga offers the user to enable or disable 'auto-refresh' with a
static preference.
But 'auto-refresh' is the default and our users often have dozens of
Icinga tabs open in their browser, which they are not looking at.
The background tabs lead to significant load on the database to to
repeated queries to keep the invisible UI fresh.
This change adds a visibility listener, which disables auto-refresh when the
page is not visible.
refs #2761
2017-10-26 13:53:25 +02: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
Alexander A. Klimov
cb2093513a
Icinga.Timer: use setTimeout() instead of setInterval()
...
refs #11693
2017-02-10 10:14:14 +01:00
Michael Friedrich
08a82daea3
Update to icinga.com
...
refs #2687
2017-01-18 12:04:43 +01:00
Florian Strohmaier
e56b568050
Merge branch 'master' of git.icinga.org:icingaweb2
2016-12-13 13:53:53 +01:00
Florian Strohmaier
14b325aff4
Fix header height when announces shown
2016-12-13 13:53:23 +01:00
Eric Lippmann
08571ce01c
Fix exception in navigation.js
2016-12-13 13:31:46 +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
e030229d7f
Fix CSS issues when rerendering the layout
...
fixes #13467
2016-12-12 15:02:51 +01:00
Eric Lippmann
67e41af308
Fix navigation behavior not clearing active items properly
2016-12-12 15:02:28 +01:00
Eric Lippmann
aa559c4636
Merge branch 'bugfix/actiontable-row-handling-13115'
...
fixes #13115
2016-12-09 13:49:27 +01:00
Eric Lippmann
626afbd5ec
Merge branch 'bugfix/always-use-the-jquery-find-method-w/-node-context-10704'
...
fixes #10704
2016-12-08 17:15:02 +01:00
Eric Lippmann
177d4c770d
JS: Optimize navigation behavior by using the #menu selector for the onRendered event
...
refs #10704
2016-12-08 16:56:25 +01:00
Eric Lippmann
eef982f3c3
Don't stop auto-refresh when a form button has focus
2016-12-08 10:40:22 +01:00
Eric Lippmann
39c7451664
Implement announcements
...
refs #11198
2016-11-29 15:24:34 +01:00
Eric Lippmann
e9e66930d5
Remove obsolete dropdown methods from the navigation behavior
2016-11-28 12:13:10 +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
Thomas Gelf
d1fd7e4be7
loader.js: place focus at the end of text inputs
2016-11-21 11:39:03 +00: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
ce6fa235cb
js/loader: do not steal focus placed by module
2016-11-16 10:49:28 +00:00
Thomas Gelf
0f58776b4e
actiontable: gracefully clear and improve...
...
...state preservation
refs #13115
2016-11-16 09:38:44 +00:00
Jennifer Mourek
3338040952
actiontable.js: Update row counter when detail area is closed
...
refs #10691
2016-10-28 08:08:42 +02:00
Eric Lippmann
118c435bc5
JS: Fix usage of global variable self used to reference icinga in events.js
...
refs #10703
2016-09-09 13:22:10 +02:00
Eric Lippmann
7e47a2965c
JS: Fix usage of global variable self used to reference icinga in loader.js::onComplete()
...
refs #10703
2016-09-09 13:22:08 +02:00
Alexander A. Klimov
cf5e26c56c
Avoid local variable name `self' in ui.js
...
refs #10703
2016-09-01 16:32:31 +02:00
Alexander A. Klimov
4f52beb32a
Avoid local variable name `self' in module.js
...
refs #10703
2016-09-01 16:30:01 +02:00
Alexander A. Klimov
56c10ffdd5
Avoid local variable name `self' in loader.js
...
refs #10703
2016-09-01 16:28:57 +02:00
Alexander A. Klimov
e726f10e68
Avoid local variable name `self' in history.js and timer.js
...
refs #10703
2016-09-01 16:16:55 +02:00
Alexander A. Klimov
3c43d38171
Avoid local variable name `self' in events.js
...
refs #10703
2016-09-01 16:16:55 +02:00
Alexander A. Klimov
4e2c626ae0
Avoid local variable name `self' in eventlistener.js
...
refs #10703
2016-09-01 16:16:49 +02:00
Alexander A. Klimov
060a82fa4a
Avoid local variable name `self' in tooltip.js and tristate.js
...
refs #10703
2016-09-01 15:58:32 +02:00
Alexander A. Klimov
0d7f8148de
Avoid local variable name `self' in navigation.js
...
refs #10703
2016-09-01 15:49:39 +02:00
Alexander A. Klimov
0059622bba
Avoid local variable name `self' in form.js
...
refs #10703
2016-09-01 15:42:54 +02:00
Alexander A. Klimov
311fd36326
Avoid local variable name `self' in actiontable.js
...
refs #10703
2016-09-01 15:21:45 +02:00
Alexander A. Klimov
f72411c628
Avoid local variable name `self' in icinga.js
...
refs #10703
2016-09-01 15:09:50 +02:00
Johannes Meyer
1993ae2ed2
js: Fix that the menu is not reloaded in case no search is available
...
fixes #12541
2016-08-25 08:54:04 +02:00
Eric Lippmann
cefdc496ef
Forms: Remember submit from click event before
...
This helps Safari to determine the correct clicked or pressed submit button in case the form has more than one.
2016-06-27 10:41:16 +02:00
Alexander A. Klimov
4a78fa6a66
List views: handle clicks on mailto: and http:// links as expected
...
refs #11267
2016-06-02 10:43:34 +02:00
Marc DeTrano
621c0dbcad
Support data URIs in href
...
resolves #11495
Signed-off-by: Eric Lippmann <eric.lippmann@netways.de>
2016-04-13 12:59:09 +02:00
Eric Lippmann
93b50fe484
Refresh menu but keep search text if not focused
...
fixes #11128
2016-04-11 14:24:23 +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
b6fd4f5584
events.js: do not apply event handlers without...
...
...an Icinga object. Added a log line, eventually we'll catch this one
far day :)
2016-02-29 22:11:30 +01:00
Thomas Gelf
28204762ab
js: fix urls for dynamic css/js reloads
2016-02-29 21:40:48 +01:00
Thomas Gelf
96f50c5dfa
loader.js: fix JS error on IE
2016-02-29 21:18:46 +01:00
Thomas Gelf
29eedc1d4a
navigation.js: remove forgotten console.log
2016-02-29 21:08:26 +01:00
Florian Strohmaier
0c34c20640
Prepare close-container for behavior implementation
...
refs #8590
2016-02-27 15:07:10 +01:00
Alexander A. Klimov
af18334e3e
Cookie icingaweb2-tzo: use `-' as separator
...
fixes #11126
2016-02-25 13:21:34 +01:00
Alexander A. Klimov
a2a96be8c9
Display ISO date and time when a connection was lost
...
refs #10625
2016-02-22 11:24:19 +01:00
Alexander A. Klimov
c4a69191a3
JS: implement Icinga.Utils.padString()
...
refs #10625
2016-02-22 11:14:41 +01:00
Alexander A. Klimov
dc6ea11415
JS: Encode URLs shown in responsive debug element
2016-02-19 14:27:14 +01:00
Alexander A. Klimov
11ea7d99d7
Escape messages of notifications loaded by JavaScript
2016-02-19 14:10:58 +01:00
Alexander A. Klimov
a493c3469c
JS: implement Icinga.Utils.escape()
2016-02-19 14:05:05 +01:00
Alexander A. Klimov
474803fee4
Change all license headers to only reflect a file's year of creation
...
refs #11000
2016-02-08 15:41:00 +01:00
Eric Lippmann
e468329051
JS: Keep search field focus
...
fixes #11029
2016-02-02 08:40:35 +01:00
Eric Lippmann
b5cbf49433
JS: Fix login autofocus
2016-01-28 12:29:42 +01:00
Eric Lippmann
41c942d197
JS: Maintain auto-refresh interval over redirects
...
This is far from beautiful. But JS needs a revamp anyway.
Request should be an object and should be passed from function to function in order to maintain state.
2016-01-27 09:19:12 +01:00
Eric Lippmann
c963ee23ff
JS: Ignore autosubmit elements in the form behavior
2016-01-27 09:12:42 +01:00
Eric Lippmann
7ede8124cb
Pagination: Focus active after next or prev exceeded
...
I'd like to see behaviors for components instead of patching loader/events all the time.
2016-01-25 07:23:12 +01:00
Eric Lippmann
4c4e8e4ac2
monitoring: Re-focus check now and alike
2016-01-22 13:33:59 +01:00
Eric Lippmann
2f9ffa65d7
JS: Ignore ids forms and form controls in getCSSPath()
...
Id generation is unreliable.
refs #10992
2016-01-20 18:10:04 +01:00
Eric Lippmann
e1eb505986
JS: Maintain autosubmit focus
2016-01-18 13:28:36 +01:00
Eric Lippmann
ebab4e8473
JS: Ignore ids startings w/ form_ in getCSSPath
...
protectId makes ids change over subsequent requests.
2016-01-18 13:27:02 +01:00
Eric Lippmann
7a6d61ceaa
JS: Re-focus visible elements only
...
Don't try to re-focus links from dropdown tabs example because they're no longer visible if the page has been loaded.
2016-01-18 12:50:27 +01:00
Eric Lippmann
3ab5b5b721
Fix skip to content jump link
2016-01-18 12:50:27 +01:00
Eric Lippmann
81d73bb5e4
JS: Try to maintain focus
2016-01-18 12:50:27 +01:00
Eric Lippmann
b515eaa076
JS: Introduce getCSSPath
...
getCSSPath returns the CSS path to a given jQuery element. We have getDomPath which is not robust enough and
getElementByDomPath which makes no sense because getDomPath could already return a selector suitable for jQuery.
getCSSPath is meant to replace both of them.
The function is far from perfect, as its lacking class consideration and optimization.
2016-01-18 12:50:27 +01:00
Eric Lippmann
a262d13f86
Interpret onload ajax requests for the detail column as auto-refresh
...
This is a preperation for programmatically focusing the target container of a followed link for accessibility reasons.
Automated focusing of the target container must not happen if the request is a auto-refreshing one. Thus onload requests
are now flagged as auto-refresh.
2016-01-18 12:50:27 +01:00
Eric Lippmann
66c4b9a3da
Fix dropdown losing focus when navigating w/ the keyboard
2016-01-12 08:52:30 +01:00
Eric Lippmann
7c1ccc685f
Rename close-toggle to close-container-control
2016-01-12 08:52:30 +01:00
Eric Lippmann
267aa0d3a2
Remove forgotten console.log from ui.js
2016-01-12 08:52:30 +01:00
Eric Lippmann
b1049f2aed
Prepare .controls for removing padding
...
refs #10871
2016-01-12 08:52:30 +01:00
Eric Lippmann
1c5ada2531
Remove hover effects from mobile menu
2015-12-22 14:32:04 +01:00
Eric Lippmann
447ebeb0b6
JS: Optimize mobile menu code
2015-12-22 14:01:45 +01:00
Eric Lippmann
887a688781
Quick-fix mobile menu
...
Will be reworked asap.
2015-12-21 14:06:42 +01:00
Eric Lippmann
1b196e61a6
Ignore application-state requests on setup
2015-12-21 13:03:58 +01:00
Eric Lippmann
6e9b9cb8d6
JS: Add autofocus behavior
...
refs #10671
2015-12-21 13:03:08 +01:00
Eric Lippmann
f5dac49330
Don't fire application-state requests if not authenticated
...
fixes #10749
2015-12-16 12:55:41 +01:00
Eric Lippmann
8006090108
Merge branch 'feature/theming-10705'
...
resolves #10705
2015-12-16 12:49:11 +01:00
Eric Lippmann
30124f384e
JS: Improve selector used in the selectable behavior
2015-12-16 12:48:02 +01:00
Eric Lippmann
755f361e4c
Add behavior for dropdown navigation items
...
Dropdown navigation is not yet accessible. The added behavior listens for activity on dropdown-navigation-item for toggling the CSS class active.
2015-12-16 12:48:02 +01:00
Eric Lippmann
12a39568b7
JS: Remove unused variable in sparkline behavior
2015-12-16 12:48:02 +01:00
Eric Lippmann
99f0a348c5
Disable transitions on page load
2015-12-15 13:29:30 +01:00
Eric Lippmann
5b898d5f3b
JS: Don't activate a menu item if only a part of the current URL matches
...
Else, navigating to user -> preferences -> navigation activates configuration -> shared navigation for example.
2015-11-20 09:39:53 +01:00
Eric Lippmann
583a4985c0
Add mobile menu
...
fixes #8999
2015-11-16 14:21:08 +01:00
Eric Lippmann
0cc54ce34b
Refresh session every 10 minutes
...
Quick and dirty fix.
fixes #10229
2015-11-16 14:19:33 +01:00
Eric Lippmann
fefdfe3d7b
JS: Reduce code for the sparkline behavior
...
refs #5543
2015-11-11 15:23:45 +01:00
Eric Lippmann
e1e1a535ee
JS: Remove unnecessary space in Navigation::onRendererd()
...
refs #5543
2015-11-10 09:31:52 +01:00
Eric Lippmann
68777b2b6a
JS: Don't use deprecated jQuery function size() in navigation.js
...
refs #5543
2015-11-09 16:44:37 +01:00
Eric Lippmann
70d7f7f669
JS: Fix doc of navigation::onRendered()
...
refs #5543
2015-11-09 16:44:19 +01:00
Eric Lippmann
bb432fcc68
JS: Use _this when saving a reference to this in Navigation::onRendered()
...
There a tons of places where we use self instead of _this. self is a global variable in modern browsers.
refs #5543
2015-11-09 15:55:23 +01:00
Thomas Gelf
ed69bd5d99
Tables: rename action-table to table-row-selectable
2015-11-04 15:39:35 +01:00
Johannes Meyer
68297f0630
Revert "loader.js: Do not push redirects to history"
...
This reverts commit e99cdb66ef
.
2015-10-02 11:46:44 +02:00