Commit Graph

55 Commits

Author SHA1 Message Date
Johannes Meyer 60dfbcbad9 Remove remaining usages of `#menu-container` 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
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 dd4cfaba50 navigation.js: Store and load sidebar collapse state from localStorage
resolves #3628
2019-07-18 09:43:22 +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 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
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
Eric Lippmann 08571ce01c Fix exception in navigation.js 2016-12-13 13:31:46 +01:00
Eric Lippmann 67e41af308 Fix navigation behavior not clearing active items properly 2016-12-12 15:02:28 +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 e9e66930d5 Remove obsolete dropdown methods from the navigation behavior 2016-11-28 12:13:10 +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
Alexander A. Klimov 0d7f8148de Avoid local variable name `self' in navigation.js
refs #10703
2016-09-01 15:49:39 +02:00
Thomas Gelf 29eedc1d4a navigation.js: remove forgotten console.log 2016-02-29 21:08:26 +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 1c5ada2531 Remove hover effects from mobile menu 2015-12-22 14:32:04 +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 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
Matthias Jentsch d88336dc39 Fix activating search items in navigation
Support activating search input fields in navigation.js,
improve setActiveByUrl to recognize search input urls.

refs #9761
2015-08-26 11:49:50 +02:00
Matthias Jentsch 6a43dd9e0e Improve comments and clean up 2015-08-26 11:38:12 +02:00
Matthias Jentsch 96e3845f46 Improve handling of navigation on link closes
Do not drop active menu when closing the left column, unless there is a different active menu that matches the current state.

fixes #9761
2015-08-25 16:55:10 +02:00
Matthias Jentsch 47d8b45e6a Store active menu item as HTML5 history state information
Introduce new interface to allow behaviors to handle state in the HTML5 history and adapt the behavior implementation.

refs #9761
2015-08-25 16:51:55 +02:00
Matthias Jentsch 2541b0eba4 Restore hover menu on reload
Remember the hovered menu and restore it on each reload.

fixes #8969
2015-08-18 11:42:42 +02:00
Johannes Meyer d6e5afa6d5 Fix that a menu section is not expanded in a popup when hovered
fixes #8695
2015-03-13 15:01:47 +01:00
Eric Lippmann 6bae2e0a53 Note that our license is GPL v2 or any later version in our license header instead of pointing to the license's URL 2015-02-04 10:52:27 +01:00
Matthias Jentsch e8466ec7be Fix inlinePie borders and SVG sizes
Add white border to inline piecharts in the list, to make them more visible on mouse hovering. Set a default image size for the loaded svg charts.
2015-02-03 16:46:12 +01:00
Eric Lippmann 5b4fab0750 Add license header
This time without syntax errors hopefully :)
2015-02-03 16:27:59 +01:00
Eric Lippmann 5fa2e3cfdc Revert "Add license header"
This reverts commit 338d067aba.
2015-02-03 16:16:26 +01:00
Eric Lippmann 338d067aba Add license header
fixes #7788
2015-02-03 15:51:04 +01:00
Marius Hein 7ef86ddf49 Navigation: Bypass error-prone hover selector for IE8
refs #6417
2015-01-28 13:19:49 +01:00
Matthias Jentsch 3d07049fbf Re-render menu item after setting class to active
Force the browser to re-render the menu item, to update the link layout immediately
by recreting the content html.

fixes #7897
2014-12-29 16:21:10 +01:00
Johannes Meyer f64b3c1439 Fix that the current page of our list view pagination is not being highlighted
fixes #7492
2014-11-14 11:58:29 +01:00
Matthias Jentsch ee63dfd310 Update navigation when the url of the main column changes 2014-10-01 17:47:21 +02:00
Matthias Jentsch ec9e9e8dfb Get correct navigation link id on first render 2014-10-01 16:49:30 +02:00
Matthias Jentsch fa2c9e46ed Cleanup comments and whitespaces 2014-10-01 16:48:38 +02:00
Matthias Jentsch 7f0a2d540b Tell navigation behavior about changes in active menus
fixes #7181
2014-09-12 15:01:25 +02:00
Matthias Jentsch ad53f7ad3d Use EventEmitter class as a way to delegate events from behaviors to the dom 2014-09-12 09:09:21 +02:00