Commit Graph

146 Commits

Author SHA1 Message Date
Thomas Gelf 96f50c5dfa loader.js: fix JS error on IE 2016-02-29 21:18:46 +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 11ea7d99d7 Escape messages of notifications loaded by JavaScript 2016-02-19 14:10:58 +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 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 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 e1eb505986 JS: Maintain autosubmit focus 2016-01-18 13:28:36 +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 81d73bb5e4 JS: Try to maintain focus 2016-01-18 12:50:27 +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
Johannes Meyer 8e94f3e58e Revert "Revert "Fix logout loop (testing), #2""
This reverts commit 967c3552e5.
2015-10-02 11:46:44 +02:00
Johannes Meyer 967c3552e5 Revert "Fix logout loop (testing), #2"
This reverts commit 6affad6895.
2015-10-02 11:36:06 +02:00
Johannes Meyer e99cdb66ef loader.js: Do not push redirects to history 2015-10-02 11:36:06 +02:00
Eric Lippmann 6affad6895 Fix logout loop (testing), #2
Quick and dirty fix.
2015-10-01 10:50:33 +02:00
Eric Lippmann 5f7f0a9e89 Fix logout loop (testing)
If this commit breaks anyhting, feel free to revert it.
2015-10-01 10:30:18 +02:00
Johannes Meyer 67a28a4b47 js: Do not re-open the detail url if it's the origin of a redirect
refs #5600
2015-09-25 13:58:52 +02:00
Matthias Jentsch 4e2595c09b Fix history breaking on autorefresh 2015-08-28 16:06:07 +02:00
Matthias Jentsch ef8ee3302b Improve JS error handling
Refresh URL after loading erroring containers, when the user refreshes he expects to reload the page he just loaded and not the previous one.
2015-08-26 15:23:58 +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
Johannes Meyer e3d99cb00d loader.js: Add support for ajax progress timer
refs #8369
refs #8848
2015-08-20 14:38:03 +02:00
Matthias Jentsch 34bf6bb11e Stop refresh on any error unless its an auto-refresh
Links with the same URL may still be user-triggered actions, which should cause the auto-refresh to be stalled. The old implementation assumed that user-triggered requests always have a different URL.

fixes #8975
2015-08-18 16:47:45 +02:00
Matthias Jentsch 0c2afe3c3b Clean up and conform to coding guidelines 2015-08-18 16:47:45 +02:00
Matthias Jentsch 7c7881659d Always replace requests in loader by non-GET requests
Fix issue that caused form submits to be aborted when there's already a pending autosubmit for the same url.

fixes #9024
2015-08-18 11:42:43 +02:00
Matthias Jentsch 6ba86619bc Assure that the history is updated when calling 'rendered'
fixes #9819
2015-08-11 17:41:24 +02:00
Johannes Meyer 153f3ba2f9 js: Drop function events.handleAnchor() and ui.scrollContainerToAnchor()
There is ui.focusElement() now which handles ids as well.

refs #8615
2015-08-06 11:51:57 +02:00
Matthias Jentsch ecdc03a2d7 Fix selection lost after pushing refresh
Remove old row action code that interfered with action table behavior.

refs #8623
2015-07-29 11:41:53 +02:00
Johannes Meyer 0f2351ff1d js: Fix XHR loading of URLs in case window.FormData is not supported
refs #8758
2015-07-22 13:29:44 +02:00
Johannes Meyer 5e1ea958b4 js: Correctly process the redirectUrl-meta tag for successful frame uploads
refs #8758
2015-07-21 16:38:52 +02:00
Johannes Meyer 93fbb0231c loader.js: Split processRedirectHeader() to allow partly reuse
refs #8758
2015-07-21 16:37:21 +02:00
Johannes Meyer 9471c3c574 js: Make use of the _frameUpload parameter when submitting a form..
..to an iframe. This ensures that stuff like notifications are immediately
visible to the user after successful form submission.

refs #8758
2015-07-21 15:43:47 +02:00
Johannes Meyer 37b87eb284 js: Add fallback in case XHR file uploads are not possible
refs #8758
2015-07-20 10:52:28 +02:00
Johannes Meyer 6d4d99aa62 js: Use window.FormData instead of just FormData
refs #8758
2015-07-15 15:49:34 +02:00
Johannes Meyer c1d9cde312 js: Properly submit multipart/form-data
This is not IE <10 compatible. Fix follows. ;-)

refs #8758
2015-07-15 15:25:40 +02:00
Johannes Meyer 3098c21c17 loader.js: Push failed requests to history
The commit ae68e8aec4 reverted
earlier seems to be supposed to do exactly what this one does now.
Prior, the commits ae68e8aec4 and
8bb0e4e0a0 were effectively
neutralizing each other. Quick tests of how Web 2 handles failing
requests while interacting with the browser's history were successful.
If this change breaks something else (again?), leave me a note and do
*not* fix it straight away..
2015-07-06 16:56:44 +02:00
Johannes Meyer b4fe91bb2f Revert "Ajax onFailure: Write component URL to container"
This reverts commit ae68e8aec4.

fixes #9042
fixes #9544
2015-07-06 16:43:49 +02:00
Matthias Jentsch 975a834bd4 Remove unused code and clean up 2015-06-30 12:28:41 +02:00
Johannes Meyer 88f5bb8368 js: Relax check whether to switch to single column layout upon redirect
This fixes the problem when redirecting from a form using the same route
as in the leftmost column but with a different querystring, that one gets
the same route shown twice.
2015-05-22 16:54:59 +02:00
Johannes Meyer 54a370ca22 Merge branch 'master' into bugfix/make-all-views-dashboard-compliant-7876 2015-04-20 11:15:04 +02:00
Matthias Jentsch aa409bda72 Fix formatting of js error log entries generated from responses
Replace multiple whitespace characters with a single one and remove linebreaks.

refs #8711
2015-04-16 12:15:59 +02:00
Johannes Meyer be05d3a73a Fix dashboard header handling
refs #7876
2015-04-15 13:23:34 +02:00
Eric Lippmann 2e1ae185fb Retain detail URL if the layout is rerendered after a redirect
refs #8605
2015-03-13 04:04:58 +01:00
Eric Lippmann 7f94858b8d Add JSDoc to Icinga.Loader.prototype.processRedirectHeader()
refs #8626
2015-03-11 21:26:44 +01:00
Eric Lippmann 031f9ddc84 Don't always redirect to the current window's URL if the redirect URL is __SELF__
Please see code comments for an explanation.

refs #8626
2015-03-11 21:24:56 +01:00
Johannes Meyer 3dce0e434a Add more sophisticated fix for keeping the focus after an autorefresh
fixes #8350
2015-02-17 09:24:38 +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 ae68e8aec4 Ajax onFailure: Write component URL to container
This is needed that history can push the correct detail url
2015-02-16 14:11:11 +01:00
Thomas Gelf d10beb7604 js: no console.log. please! 2015-02-09 15:26:55 +01:00
Matthias Jentsch b56eb7b669 Fix keyboard navigation
Store current focus position before reload and apply it after rendering.

fixes #8350
2015-02-04 18:01:06 +01:00