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
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 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
Johannes Meyer
8bb0e4e0a0
Failure requests: Fix auto refresh and history II
...
Allow to change url's in history and stop auto auto refresh if
the container URL is not up to date.
Use variable after ajax call and the check is more robust.
2015-02-02 16:52:36 +01:00
Marius Hein
bc69a3b20f
Revert "Failure requests: Fix auto refresh and history"
...
This reverts commit 8c758a9f12
.
2015-02-02 16:40:05 +01:00
Marius Hein
67a426580d
loader: Remove gray out on complete handler
...
A failure did not remove the impact class which colorize
the background gray.
2015-02-02 15:20:12 +01:00
Marius Hein
6555a2ec0a
Menu: Move request handling to complete
...
If a failure occur the menu is still working.
2015-02-02 15:03:36 +01:00
Marius Hein
8c758a9f12
Failure requests: Fix auto refresh and history
...
Allow to change url's in history and stop auto auto refresh if
the container URL is not up to date.
2015-02-02 13:32:40 +01:00
Marius Hein
190c1e8f04
Revert "Revert "Dashboard: Always replace title""
...
This reverts commit d1f13819e4
.
Please do not ask. This was no syntax error.
2015-02-02 12:04:28 +01:00
Marius Hein
d1f13819e4
Revert "Dashboard: Always replace title"
...
This reverts commit c0c0e7d9e5
.
Syntax error
2015-02-02 12:01:40 +01:00
Marius Hein
c0c0e7d9e5
Dashboard: Always replace title
...
This is needed if an error occurs and the exception title was rendered
into the container.
2015-02-02 12:00:08 +01:00
Marius Hein
7b8332ccd8
Notifications do not disappear after autorefresh
...
This is not affected anymore because the errors goes directly
into the container. But this commit fixes the codes if someone
use the notifications in the loader. Also remove unused
variable this.exception.
fixes #6278
2015-01-30 15:25:12 +01:00
Marius Hein
6ec2ee753d
Render error messages in the container itself
...
fixes #6280
2015-01-30 14:50:25 +01:00
Thomas Gelf
95f9bebdc5
js/loader: support multi-container redirection
...
Redirections to #!-separated URLs (multiple containers) should also
work when not re-rendering the whole layout.
2014-11-01 01:23:55 +01:00
Thomas Gelf
6298d303c4
js/loader: trigger 'beforerender' container event
2014-11-01 01:12:59 +01:00
Thomas Gelf
f25f4f06d8
js/loader: disable click handler block on refresh
...
This used to be ways too slow when many elements where involved. Left
the old code there as a reminder. In case we really need it we should
use something faster like an overlay or so.
2014-11-01 01:11:12 +01:00
Matthias Jentsch
6124f984ee
Adjust scroll position on container after triggering the 'rendered' event
...
Prevent behaviors from altering the current scroll-position on page reload when refreshing or changing the focus.
fixes #7269
2014-10-14 15:50:15 +02:00
Matthias Jentsch
ee63dfd310
Update navigation when the url of the main column changes
2014-10-01 17:47:21 +02:00
Matthias Jentsch
fa2c9e46ed
Cleanup comments and whitespaces
2014-10-01 16:48:38 +02:00
Matthias Jentsch
ef2f332869
Do not refresh a container when form input was changed or a form element is focused
...
Listen for changes in form elements and abort all reloads that contain a form with
at least one changed form element. Do not refresh containers that contain a focused form
element, except of elements with autofocus, to preserve form elements with a dropdown.
Only focus autofocus elements when there is currently no other selection.
refs #7146
refs #5537
fixes #7162
2014-09-19 15:48:44 +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
b7c207a9cb
Do not drop preselection in the navigation on reload
2014-09-09 15:32:07 +02:00
Thomas Gelf
ef847801f2
js/loader.js: preserve scrolling position...
...
...on autorefresh and reset it otherwise.
fixes #6285
fixes #6988
2014-09-02 20:11:37 +02:00
Thomas Gelf
f12a5741b8
js/loader: postpone redirection handling
...
Redirections should not be executed unless the original request has been
terminated and removed from pending requests.
fixes #6989
2014-09-02 19:05:49 +02:00
Thomas Gelf
512e7d516b
js/loader: Handle __SELF__ in redirection URLs
...
That's one more step to smoothly handle #! URLs, especially when you
are not yet authenticated.
refs #6935
2014-08-19 10:00:29 +02:00
Johannes Meyer
3105c2059e
Remove license headers from all files
...
refs #6309
2014-07-15 13:43:52 +02:00
Thomas Gelf
329b1cf960
js/loader: correctly get rid of data
...
I'm unsure whether this is a jQuery bug or not. The removeData()
function has no effect unless there is a matching data attribute.
Makes IMO no sense, as adding the attribute automagically adds data,
so why should removing it differ.
This patch makes sure that the corresponding attribute is removed too.
Fixes "dashboard sometimes flickering on refresh".
refs #6536
2014-07-08 20:10:44 +02:00