40 Commits

Author SHA1 Message Date
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
f05f905d14 history.js: Set lastPushUrl in method replaceCurrentState()
Without this, any subsequent call to `pushCurrentState()` has
no effect in case the same url is used that was replaced.
2021-01-13 17:15:58 +01:00
Johannes Meyer
969c1615c7 history.js: Don't load location bar as if it's an autorefresh 2020-02-28 14:37:46 +01:00
Eric Lippmann
71b8ab9b68 JS: Introuce Icinga.History.replaceCurrentState()
Before, we only had pushCurrentState() to add a new URL to the history
stack. But some actions, e.g. "load more" in history views require to
replace the current state instead of pushing. This is what
replaceCurrentState() supports now.
2020-01-15 09:57:30 +01:00
Eric Lippmann
97006973d8 JS: Introduce Icinga.History.getCurrentState()
Before, Icinga.History.pushCurrentState() had this functionality
enclosed. Now it is usable from other functions as well.
2020-01-15 09:55:39 +01:00
Johannes Meyer
4900040d47 js: Restore previous title when closing right column
fixes #3654
2019-04-16 09:29:42 +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
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
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
Johannes Meyer
f17c185aed js: Improve logging when pushing history states 2015-09-25 14:08:10 +02:00
Matthias Jentsch
d00e854f4b Remove unused code from old Chrome history workaround
refs #6277
2015-09-10 17:33:11 +02:00
Matthias Jentsch
a93481c362 Add missing documentation 2015-09-10 17:03:58 +02:00
Matthias Jentsch
8e554684af Fix multi-selection in combination with anchors
refs #9844
2015-09-10 16:49:18 +02:00
Matthias Jentsch
55521bf880 Add support for anchors in the main url
refs #9844
2015-08-28 14:16:27 +02:00
Matthias Jentsch
53bc494c46 Prevent JS crashes in case of empty history 2015-08-26 11:50:04 +02:00
Matthias Jentsch
a7a93803ee Cleanup and conform to coding guidelines 2015-08-25 16:58:14 +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
737521e921 Fix browser history hanging when both panes are pointing to the same site
fixes #9040
2015-08-11 14:14:05 +02:00
Matthias Jentsch
84f35bc79a Fix last push url in history
Fix issue in history that caused some states to be swallowed by pushUrl, after going back and then trying to update to the previous state.
2015-07-29 12:34:49 +02:00
Eric Lippmann
b5abff0313 Fix that the detail URL is no longer appended to the redirect URL on login
JavaScript relied on #redirect but we now protect IDs which make them unusable
for JS and CSS.

refs #8728
2015-03-13 03:48:46 +01:00
Marius Hein
ea57e7a786 History: Do not write abort requests to browser history
Remove req.historyTriggered and introduce req.addToHistory.
2015-02-16 15:56:50 +01:00
Marius Hein
6cc428d0e1 History: Combined cleanup regular expression 2015-02-16 15:38:16 +01:00
Marius Hein
2aca4dc6d5 History: Do not push same url twice 2015-02-16 14:11:23 +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
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
Matthias Jentsch
ed91e119d2 Add close-button to all containers
refs #6216
2014-10-01 14:51:51 +02:00
Thomas Gelf
3ccfbec53c js/history: no additional container at login
History tries to load additional URLs separated by #! on page load. This
makes no sense on login page. However we need to preserve them when logging
in.

refs #6935
2014-08-19 09:22:10 +02:00
Johannes Meyer
3105c2059e Remove license headers from all files
refs #6309
2014-07-15 13:43:52 +02:00
Thomas Gelf
78193137f0 config/modules: show metadata, improve usability
Well... I didn't want to commit this before creating single-button
forms for enabling/disabling modules. However part of this accidentally
made it through, so let's finish it.

Still some work to do, but it already looks far better like this.

refs #4095
2014-06-21 02:27:27 +02:00
Thomas Gelf
747083d322 JS/history: handle also requests out of containers
On login/logout (not only) we have requests not rendered to containers.
History handling only cared about them and failed.

fixes #6466
2014-06-21 01:57:59 +02:00
Thomas Gelf
b7cdff6fa5 js/history: do not remove special params
We used to do this to blacklist certain parameters to not trigger
heavvy actions twice when navigating through history. We also do
never want to see such parameters in our address bar.

This conflicts with our slightly more complicated new filter URLs,
unless we are able to handle them on client side this is disabled
for now. IMO it should be handled server-side and eventually invol-
ving one more redirect.
2014-06-17 14:21:28 +00:00
Thomas Gelf
11b4661b46 js/history: fix history on initial page
There is a workaround for a nasty Chrome missbehaviour, however I have
no longer been able to reproduce it. Temporarily disabled the workaround,
could you please try whether behaviour is better / correct like this?

Please also check for requests firing twice on initial page load.

refs #6277
2014-06-05 03:40:43 +00:00
Johannes Meyer
08260866df Fix navigating by anchor results in an empty detail view being opened
fixes #5871
2014-04-28 16:06:03 +02:00
Thomas Gelf
9b79a8280f Blacklist special params in history and do not trigger change on page load 2014-03-31 16:24:29 +00:00
Thomas Gelf
e0be89a1dc Apply history also on page load 2014-03-10 14:48:40 +00:00
Thomas Gelf
09e2055df4 Lower history API log level as it works fine right now 2014-03-08 18:36:15 +01:00
Thomas Gelf
8de42139d3 Move layout functions to ui.js 2014-03-08 15:08:03 +01:00
Thomas Gelf
3cac42161b History API, initial implementation 2014-03-04 13:05:01 +00:00