41 Commits

Author SHA1 Message Date
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 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
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 338d067aba41dd6e9178cebec5433eecd614196e.
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
Matthias Jentsch
2e0bef5696 Add missing event unbind 2014-09-10 17:10:08 +02:00
Matthias Jentsch
0ec97eb934 Only apply navigation link-click handlers to menu 2014-09-10 17:02:39 +02:00
Matthias Jentsch
7aadad913e Do not follow empty menu links 2014-09-10 17:02:39 +02:00
Matthias Jentsch
cb9c9c78d8 Move navigation events into behavior 2014-09-10 17:02:39 +02:00
Matthias Jentsch
f58da73e2d Move javascript behaviors into separate classes 2014-09-10 17:02:39 +02:00