Johannes Meyer
e99cdb66ef
loader.js: Do not push redirects to history
2015-10-02 11:36:06 +02:00
Matthias Jentsch
1c38fdd9c8
Fix control width
...
refs #5543
2015-10-01 18:24:51 +02:00
Eric Lippmann
3d2521abf0
Merge branch 'master' into feature/dope-layout-5543
2015-10-01 17:42:24 +02:00
Thomas Gelf
50e66810bf
events.js: do not disable inputs targetting...
...
...foreign containers. Otherwise they will remain unusable. A better
solution might be tracking source containers, but that would involve
some more work
fixes #10263
2015-10-01 15:10:01 +02:00
Matthias Jentsch
cb81916a2c
Support defining row actions that do not show up in any of the links
2015-10-01 14:54:01 +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
Eric Lippmann
51d6c61bf7
CSS: Re-add spinner for autosubmit
...
refs #5543
2015-10-01 01:59:56 +02:00
Eric Lippmann
231c63b703
Merge branch 'master' into feature/dope-layout-5543
2015-09-30 18:52:52 +02:00
Eric Lippmann
a932bad2dc
JS: Support rowaction on action-table
...
refs #5543
2015-09-29 18:05:49 +02:00
Eric Lippmann
301b0a8cc9
JS: Support actiontable behavior for action-table too
...
refs #5543
2015-09-28 17:27:33 +02:00
Eric Lippmann
d03647f2e6
JS: Rename dblclickselect to selectable
...
refs #9826
2015-09-28 15:44:25 +02:00
Eric Lippmann
2ff822c2ac
Merge branch 'master' into feature/ipv6-addresses-9645-9826
2015-09-28 13:09:30 +02:00
Johannes Meyer
a55cced039
Merge branch 'master' into feature/custom-menu-items-5600
...
Conflicts:
modules/monitoring/application/views/scripts/list/comments.phtml
modules/monitoring/application/views/scripts/list/downtimes.phtml
2015-09-25 14:12:43 +02:00
Johannes Meyer
f17c185aed
js: Improve logging when pushing history states
2015-09-25 14:08:10 +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
1b6f5861b7
Highlight selected table rows in related actions
...
Allow declaring related controllers for action tables and highlight table rows based on the queries in links pointing to those actions.
fixes #10155
2015-09-16 15:31:53 +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
a5351933fc
Merge branch 'master' into bugfix/url-anchors-not-working-9844
2015-09-07 16:11:36 +02:00
Matthias Jentsch
ef6debfa32
Allow selecting form elements in action table rows
...
fixes #10045
2015-09-07 11:27:46 +02:00
Matthias Jentsch
4e2595c09b
Fix history breaking on autorefresh
2015-08-28 16:06:07 +02:00
Matthias Jentsch
55521bf880
Add support for anchors in the main url
...
refs #9844
2015-08-28 14:16:27 +02:00
Johannes Meyer
31903b8da9
Revert "js: Use the last button instead of the first one for form submits"
...
This reverts commit fedda16bd4
.
fixes #10025
2015-08-28 10:28:55 +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
53bc494c46
Prevent JS crashes in case of empty history
2015-08-26 11:50:04 +02: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
a7a93803ee
Cleanup and conform to coding guidelines
2015-08-25 16:58:14 +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
Johannes Meyer
9ca278d7b2
Merge branch 'master' into feature/activity-indicators-for-form-submits-8369
2015-08-21 13:37:54 +02:00
Johannes Meyer
08aefe0b25
js: Allow buttons to animate themself
...
refs #8369
2015-08-21 13:28:35 +02:00
Johannes Meyer
d9855d8273
js: Fix that the fallback spinner is not utilized for auto submits
...
refs #8369
2015-08-20 16:55:03 +02:00
Johannes Meyer
736d715d8c
js: Allow to provide a fallback spinner for forms
...
refs #8369
2015-08-20 16:13:12 +02:00
Johannes Meyer
3f4221b249
js: Use a fixed with for form buttons once a form submit is ongoing
...
...and a progress label is set.
refs #8369
2015-08-20 15:32:31 +02:00
Johannes Meyer
7da8ad4e44
js: Show activity indicators for form submits
...
refs #8369
2015-08-20 14:44:49 +02:00
Johannes Meyer
fedda16bd4
js: Use the last button instead of the first one for form submits
...
refs #8369
fixes #9245
2015-08-20 14:40:05 +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
Johannes Meyer
2fe3c6e5cf
events.js: Properly handle the default for param `autosubmit'
...
refs #8369
2015-08-20 14:36:55 +02:00
Matthias Jentsch
41d68f6a74
Fix delete comments and downtimes button
...
Fix faulty target names and add additional error checking in case the target DOM Element is not present.
fixes #9330
2015-08-19 16:36:47 +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
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
a6fb3d59f8
js: Disable text selection for multiselect tables only
2015-08-17 16:06:23 +02:00
Matthias Jentsch
6ba86619bc
Assure that the history is updated when calling 'rendered'
...
fixes #9819
2015-08-11 17:41:24 +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
Johannes Meyer
0468bddc83
js: Ensure that rendered events of modules are called on page-load
...
fixes #9869
2015-08-10 14:46:58 +02:00
Johannes Meyer
6d24e09479
events.js: Some code style fixes in function applyHandlers
...
refs #9869
2015-08-10 13:24:59 +02:00
Johannes Meyer
d09ad2641f
Remove CSS rule for class "timesince"
...
It's not used anywhere.
2015-08-10 13:22:05 +02:00
Johannes Meyer
b8b649f179
js: Require a container in ui.focusElement()
...
refs #8615
2015-08-06 13:08:36 +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
Johannes Meyer
bdc61a5f62
js: Introduce new function ui.focusElement()
...
refs #8615
2015-08-06 11:49:16 +02:00
Johannes Meyer
5c80486b23
js: Properly handle anchor tags with names
...
refs #8615
2015-08-06 10:58:15 +02:00
Johannes Meyer
de24f5f4b6
Revert "js: Do not handle anchor jumps, the browser is able to do it by itself"
...
This reverts commit 5ccd4a9ef8
.
refs #8615
2015-08-06 10:57:41 +02:00
Johannes Meyer
5ccd4a9ef8
js: Do not handle anchor jumps, the browser is able to do it by itself
...
refs #8615
2015-08-06 10:24:56 +02:00
Alexander Fuhr
3d846ea270
js/actiontable: Fix the wrong parentheses encoding in multiselect
...
fixes #9347
2015-08-04 16:49:35 +02:00
Alexander Fuhr
ebd103f7ee
js/icinga/utils: Implement fixedEncodeURIComponent method
...
* FYI: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent
refs #9347
2015-08-04 16:49:35 +02:00
Markus Frosch
083900dae0
Implement DblClickSelect as a Icinga Behavior
...
refs #9826
2015-08-04 14:06:33 +02:00
Matthias Jentsch
6db79a72d5
Display the rows in the auth backend configuration as active without any delay
...
refs #8623
2015-07-29 15:21:29 +02:00
Matthias Jentsch
3a85dc7f39
Display the table on single-selection rows as active without any delay
...
refs #8623
2015-07-29 14:32:26 +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
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
Matthias Jentsch
1de1f119d6
Fix range selection in IE
...
Cancel selectstart event on all selectable rows in the action table.
fixes #8768
2015-07-28 17:54:08 +02:00
Matthias Jentsch
cbb9ef10a2
Remove single selections correctly when going back in the history
2015-07-28 15:21:14 +02:00
Matthias Jentsch
8dbd671b0d
Conform to coding guidelines, update docstrings and cleanup unused code
...
refs #8623
2015-07-28 15:21:02 +02:00
Matthias Jentsch
f2d253f508
Assure that rows are refreshed correctly on reload
...
Assure that all links are initialized when the selection is applied after a request. Move action table code into the actiontable behavior.
refs #8623
2015-07-27 10:34:17 +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
570dada0d8
js: Manually submit the form if it's being automatically submitted...
...
...in case we're submitting a multipart/form-data form using the iframe
fallback. The form wouldn't be submitted otherwise.
refs #8758
2015-07-21 14:15:12 +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
95bcb95cb5
events.js: Prevent default form submission as late as possible
2015-07-20 10:13:48 +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
aecfb2eb97
Merge branch 'bugfix/multiselection-not-visible-9054'
...
fixes #9054
fixes #9346
2015-06-30 14:08:19 +02:00
Matthias Jentsch
6a7e3fe440
Document multi selection and use clearer names
...
refs #9054
2015-06-30 13:03:41 +02:00
Matthias Jentsch
975a834bd4
Remove unused code and clean up
2015-06-30 12:28:41 +02:00
Matthias Jentsch
e0d588cda3
Fix look and feel of row selection
...
Always refresh all tables on render and click events, to display or remove active rows without any delay.
refs #9054
refs #9346
2015-06-30 11:53:38 +02:00
Matthias Jentsch
96677fb6c7
Fix selection when clicking on regular links
...
refs #9054
refs #9346
2015-06-29 18:51:32 +02:00
Matthias Jentsch
aec59d9941
Use current filter to highlight active rows instead of storing active rows in JS
...
Clean up selection code and move it into separate behavior and parse filter query to fetch selectable rows.
refs #9054
refs #9346
2015-06-29 18:48:42 +02:00
Johannes Meyer
ebe144c16a
Form: Do not encode actions twice
2015-06-24 16:15:45 +02:00
Thomas Gelf
cd70c27519
Merge remote-tracking branch 'origin/master' into feature/refine-ui-for-rc1-9361
2015-06-18 15:18:42 +02:00
Thomas Gelf
7ee192e774
fullscreen: no more fixes controls and padding
2015-06-18 13:41:12 +02:00
Thomas Gelf
2f62a4383a
Layout: add showFullscreen parameter
...
refs #6729
2015-06-18 13:41:12 +02:00
Thomas Gelf
55dd3747f7
notifications: remove on click
...
This allows one to get rid of them faster in case access to the
underlying content is needed
2015-06-18 13:29:47 +02:00
Thomas Gelf
09c0ebcacd
list/services: flip host/service for readability
...
Re-allow table.action to manually choose row action link if it should not
be the first one. This existed once but got lost.
2015-06-16 02:36:53 +02:00
Johannes Meyer
cd0c418854
Merge branch 'master' into feature/user-and-group-management-8826
2015-06-02 10:44:13 +02:00
Eric Lippmann
1bfbce98ac
Disable all form controls on submit to prevent resubmission
...
fixes #7151
2015-05-28 13:17:00 +02:00
Johannes Meyer
ec556edc65
Merge branch 'master' into feature/user-and-group-management-8826
2015-05-26 09:28:35 +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
Eric Lippmann
54577d04bd
Merge branch 'master' into bugfix/time-formatting-6778
...
Conflicts:
modules/monitoring/application/views/scripts/list/comments.phtml
modules/monitoring/application/views/scripts/list/hostgroups.phtml
modules/monitoring/application/views/scripts/process/info.phtml
modules/monitoring/application/views/scripts/show/components/downtime.phtml
modules/monitoring/application/views/scripts/show/components/notifications.phtml
modules/monitoring/public/css/module.less
2015-05-21 14:57:01 +02:00
Eric Lippmann
1e9337846a
ui: Fix refreshing partial time counters
...
refs #6778
2015-05-21 10:16:54 +02:00
Matthias Jentsch
54207d3427
Revert "Abort pending AJAX requests before page unload"
...
This reverts commit 94bdb8b4b0
. After the patch, Firefox shows an error message on each reload for an unknown reason.
refs #7759
2015-05-19 17:06:22 +02:00
Matthias Jentsch
94bdb8b4b0
Abort pending AJAX requests before page unload
...
Abort all pending requests before the page unload, to avoid confusing error messages during page reloads. Avoid rendering the site unusable in cases where the site is still being used after the beforeunload event.
fixes #7759
2015-05-19 16:35:44 +02:00
Matthias Jentsch
7c8ff44fd1
Fix comment and downtime list inline forms
...
refs #8903
refs #8902
2015-05-07 10:59:37 +02:00
Johannes Meyer
da7aa23820
Merge branch 'master' into bugfix/make-all-views-dashboard-compliant-7876
2015-04-20 15:20:23 +02:00
Johannes Meyer
5196f16bde
Do not forcibly hide controls in the dashboard
...
Our views respect view=compact now entirely so there is no need for such
a generic "solution" since it also prevents some views from being
completely displayed in the dashboard such as the host, service and
contact detail view.
refs #7876
2015-04-20 13:06:45 +02:00
Matthias Jentsch
ce6be0cc0f
Only use JS tooltips when non-native tooltip behavior is required
...
Only display JS tooltips when there are specific requirements for delay, there is a specific alignment or HTML markup can be rendered in the tooltip.
fixes #9025
2015-04-20 11:21:10 +02:00
Johannes Meyer
54a370ca22
Merge branch 'master' into bugfix/make-all-views-dashboard-compliant-7876
2015-04-20 11:15:04 +02:00
Thomas Gelf
ae7d679a6a
Revert "Do not destroy all global on mailto link clicks"
...
This reverts commit 16b9c73436
.
As I already mentioned, this re-introduces the problem that you'll
get ugly "lost connection to web server" notifications. Easiest way
to reproduce this: click your browsers reload button while a request
is pending - or just click reload a couple of times while showing the
dashboard.
refs #7759
2015-04-16 21:01:08 +02:00
Matthias Jentsch
6898a4e0d5
Display icon tooltips without delay
...
Original functionality was broken when changing the icon library.
2015-04-16 18:32:47 +02:00
Matthias Jentsch
f07c0d83e8
Add option to change tooltip settings from data attributes
...
refs #9025
2015-04-16 18:32:47 +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
Eric Lippmann
796cbffbd7
Merge branch 'master' into bugfix/time-formatting-6778
...
Conflicts:
modules/monitoring/application/views/scripts/show/components/notifications.phtml
2015-04-15 15:43:39 +02:00
Johannes Meyer
be05d3a73a
Fix dashboard header handling
...
refs #7876
2015-04-15 13:23:34 +02:00
Matthias Jentsch
1f0940c8e8
Remove all selections closing the detail area
...
fixes #8781
2015-04-13 17:55:41 +02:00
Matthias Jentsch
f4c0b35eff
Remove unused code
2015-04-13 17:55:41 +02:00
Matthias Jentsch
16b9c73436
Do not destroy all global on mailto link clicks
...
Only call the cleanup code on the unload event, beforeunload is only for asking for confirmation.
fixes #7759
2015-04-13 17:55:41 +02:00
Eric Lippmann
0baeb32751
Temporary disable timesince ui counter
...
refs #6778
2015-04-09 12:05:45 +02:00
Eric Lippmann
0de2dbd626
Temporary disable timeuntil ui counter
...
refs #6778
2015-04-08 15:23:00 +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
2e1ae185fb
Retain detail URL if the layout is rerendered after a redirect
...
refs #8605
2015-03-13 04:04:58 +01:00
Eric Lippmann
1bd2e7cb84
Submit forms to the container's target URL if the form's action is not set
...
refs #8605
2015-03-13 04:02:42 +01: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
Eric Lippmann
29d5fd351b
Merge branch 'bugfix/logout-external-8626'
...
fixes #8626
2015-03-12 16:47:49 +01:00
Eric Lippmann
8b7250bfa6
JS: Focus the element referenced by the anchor on anchor navigation ...
...
... instead of looking for any heading.
2015-03-12 16:08:47 +01:00
Eric Lippmann
77b99552a4
Add JSDoc to Icinga.Events.prototype.handleAnchor()
2015-03-12 16:08:47 +01:00
Eric Lippmann
90971f2caf
Revert "Merge branch 'feature/organize-headings-7976'"
...
This reverts commit ea2a17a76c
, reversing
changes made to e72de8dfe1
.
refs #7976
fixes #8647
2015-03-12 16:08:34 +01:00
Thomas Gelf
5270acd645
events.js: correctly detect form target container
...
This is for forms with no submit button.
fixes #8710
2015-03-12 11:30:21 +01:00
Thomas Gelf
3af36015ff
dashboard: do not fix and hide any controls
...
It would be better if view scripts would care about this, but as we
failed so many times this might be the better option.
fixes #8697
2015-03-12 10:04:19 +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
cddcde9494
Setup: Automatically check the respective admin account type selection
...
resolves #8603
2015-03-06 15:41:25 +01:00
Johannes Meyer
4351603243
Fix that editing an auth backend does not open the next column
2015-02-26 14:48:37 +01:00
Alexander Fuhr
16200417eb
Add spinner active indicator for form submit buttons
...
refs #7968
2015-02-25 14:15:32 +01:00
Alexander Fuhr
4505718ecc
Move spinner indicator functionality to linkClicked method
...
refs #7968
2015-02-25 12:10:08 +01:00
Alexander Fuhr
5297b15a61
Merge branch 'master' into feature/refresh-control-7968
2015-02-24 14:41:09 +01:00
Johannes Meyer
956efe5ef9
Merge branch 'master' into feature/link-labels-8458
...
Conflicts:
application/views/scripts/config/application.phtml
application/views/scripts/config/module.phtml
application/views/scripts/config/modules.phtml
library/Icinga/Web/Widget/Dashboard/Dashlet.php
modules/monitoring/application/controllers/TimelineController.php
2015-02-24 08:42:36 +01:00
Alexander Fuhr
aa5c52dfdd
Implement content refresh control next to dropdown tab
...
refs #7968
2015-02-23 17:02:44 +01:00
Johannes Meyer
04d2c78983
Allow to move content not wrapped by <div> to another container
2015-02-23 16:28:12 +01:00
Marius Hein
44019f4e67
Events: Quick fix for access the focusable element
...
refs #7976
2015-02-23 16:06:21 +01:00
Marius Hein
2dda3be87b
Merge remote-tracking branch 'origin/master' into feature/organize-headings-7976
2015-02-23 14:28:48 +01:00
Matthias Jentsch
2992bf3445
Always display tooltips in all charts
...
Make information about data types available to colorblind, when hovering
over the displayed data set
fixes #8364
2015-02-18 13:21:42 +01:00
Marius Hein
d3c79dae32
Merge branch 'master' into feature/organize-headings-7976
2015-02-17 15:21:29 +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
6cc428d0e1
History: Combined cleanup regular expression
2015-02-16 15:38:16 +01:00
Johannes Meyer
0c0478688e
js: Fix that buttons with any DOM descendants are not ignored by linkClicked
...
fixes #8380
2015-02-16 15:07:31 +01:00
Marius Hein
2aca4dc6d5
History: Do not push same url twice
2015-02-16 14:11:23 +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
Marius Hein
cd11cf3469
Fix close button: Test the anchor if it belongs to us
2015-02-13 11:47:16 +01:00
Marius Hein
7ca2e1d282
Fix close button: Test the anchor if it belongs to us
2015-02-13 11:45:20 +01:00
Marius Hein
bcc03f8160
Focus: Set the focus to the next usable element
...
Fix copy and paste error and find h1 first.
refs #7976
2015-02-13 11:39:28 +01:00
Eric Lippmann
9bf8488f68
js: Remove out-commented function hrefIsHashtag from events.js
2015-02-13 09:59:34 +01:00
Marius Hein
f586714f02
Skip Links: Select a more useful object
...
Skip links can select a container and find a usable element inside. Adapt
project jquery variable style.
refs #7976
2015-02-12 16:34:50 +01:00
Marius Hein
53818f50c6
Skip Links: Add anchor handlint to events
...
refs #7933
2015-02-12 13:13:52 +01:00
Thomas Gelf
d10beb7604
js: no console.log. please!
2015-02-09 15:26:55 +01:00
Johannes Meyer
423025b3fe
javascript: Do not bind the button click event
...
Catching form submit events is sufficient as catching the button click
event is not an option due to circumventing the browser's native form
validation logic otherwise.
refs #8349
2015-02-05 13:21:03 +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
Matthias Jentsch
2f254851e3
Fix pieChart layout and add indicator for truncated piecharts
2015-02-03 17:34:56 +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
Thomas Gelf
f6fc592b91
events.js: reduce logging noise
...
Form submission by pressing return is not an error, and debug level
should suffice for the other button-related notices too.
2015-02-02 21:56:14 +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
Johannes Meyer
a5fe9a1fe1
Revert "Introduce link target "_right" to keep a column with tabs rightmost"
...
This reverts commit 618ab4f4b9
.
2015-02-02 16:34:29 +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
Marius Hein
4abb30e55b
Merge branch 'master' into bugfix/ie8-fixes-6417
2015-01-28 17:08:56 +01:00
Johannes Meyer
618ab4f4b9
Introduce link target "_right" to keep a column with tabs rightmost
...
I'd have liked to get it to work that in case the tab control is not in the
rightmost column a "go back" in the history is being simulated causing
the preceding leftmost column(s) to be restored and the rightmost one
set to the one containing the tab control. But the history api does not
seem to support any read operations except for the current state..
refs #6436
2015-01-28 14:21:06 +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
Matthias Jentsch
cda5a6a903
Streamline chart implementation
...
Define sparkline layout through CSS class and remove label/tooltip formatting.
fixes #7077
2014-12-23 15:26:45 +01:00
Matthias Jentsch
64a2acd12e
Do not display labels for single data sets in perfdata piecharts
...
Display generic chart titles for the whole piechart that only contain title and percentage and don't style perfdata piecharts using HTML properties.
refs #7077
refs #6200
refs #7304
2014-12-23 15:14:17 +01:00
Marius Hein
b0382da5fe
JS/submitForm: Choosing the right submit button in FF
...
refs #7751
2014-11-20 11:07: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
Alexander Fuhr
6ee0c218e9
Remove debug `console.log()' from `provideSelectionCount()'
...
refs #7654
2014-11-14 10:18:47 +01:00
Alexander Fuhr
540a8c7aa4
Fix hint counter on unselect the last row
...
refs #7654
2014-11-14 10:17:23 +01:00
Alexander Fuhr
46df428e28
Add selection count hint in grids with help for hosts and services
...
refs #7654
2014-11-13 12:50:39 +01:00
Johannes Meyer
f7d168c80f
Fix that FireFox < v33 is unable to find the button that got the focus
2014-11-07 14:22:03 +01:00
Johannes Meyer
170ded6510
Merge branch 'master' into feature/setup-wizard-7163
...
Conflicts:
library/Icinga/Authentication/Backend/LdapUserBackend.php
library/Icinga/File/Ini/IniWriter.php
2014-11-04 14:22:53 +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
Johannes Meyer
9f127be1dc
Merge branch 'master' into feature/setup-wizard-7163
...
Conflicts:
application/forms/Config/General/LoggingConfigForm.php
2014-10-17 13:04:59 +02: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
Johannes Meyer
62544111ff
Fix that when pushing ENTER in a form with just <buttons> no button is sent
2014-10-09 13:42: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
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
ed91e119d2
Add close-button to all containers
...
refs #6216
2014-10-01 14:51:51 +02:00
Alexander Fuhr
07a4b25560
Merge branch 'master' into bug/history-notification-time-format-6980
2014-09-23 11:38:24 +02:00
Alexander Fuhr
e784aa34b6
Implement DateTimeRenderer and fix history time format
...
refs #6980
2014-09-23 11:36:09 +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
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
e216ba6721
Merge stash
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
c0908e32ba
Remove unused behavior base-class
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
Matthias Jentsch
5d2e849491
Apply behaviors correctly on startup
2014-09-10 17:02:39 +02:00
Matthias Jentsch
d99d50b3c4
Add stub for javascript behaviors
2014-09-10 17:02:38 +02:00
Matthias Jentsch
da7e599363
Only remove active elements in navigation on reload
2014-09-09 16:32:15 +02:00
Matthias Jentsch
b7c207a9cb
Do not drop preselection in the navigation on reload
2014-09-09 15:32:07 +02:00
Matthias Jentsch
157818c8e7
Fix navigation reload
...
Activate the correct menu item with JavaScript after relaod and don't
render it on server-side on XHR requests.
2014-09-09 13:57:48 +02:00
Matthias Jentsch
56b779af4d
Clean up mousemove handler and remove unused tooltip code
2014-09-08 16:46:47 +02:00
Matthias Jentsch
28f5ef2284
Fix elementsOverlap function for SVG elements
...
Access SVG getBBox function to acquire the bounding box for SVG elements
2014-09-08 16:37:20 +02:00
Matthias Jentsch
545db945da
Auto refresh menu
...
Put the navigation into a container and reload it once every 15 seconds from a distinct menu action. Include the current
path into an URL param to still be able to mark the current menu item as active.
fixes #6955
2014-09-08 15:21:14 +02:00
Marius Hein
f2df8d9bae
Timezone detection: Set cookie expiration to 1 day
...
refs #6078
2014-09-05 15:24:13 +02:00
Marius Hein
a300877878
Time detection: Add receiever to bootstrap method
...
refs #6078
2014-09-05 15:24:13 +02:00
Marius Hein
3ce42489c6
Timezone detection: Client implementation
...
refs #6078
2014-09-05 15:24:13 +02:00
Thomas Gelf
0b53f30b08
js/events: ignore mailto links
...
fixes #7079
2014-09-05 15:05:22 +02:00
Matthias Jentsch
eeed030bb5
Do not use an invalid HTML attributes for rich titles
2014-09-04 13:32:30 +02:00
Matthias Jentsch
e5be8d47ef
Fix SVG bound calculation for tooltips in Firefox
2014-09-04 09:53:57 +02:00
Matthias Jentsch
868e8b25b6
Fix left over tooltips after reloads with layout shift
2014-09-04 09:32:15 +02:00
Matthias Jentsch
510e38335e
Remove useless tooltip from host and service list
...
remove titles from time spans on all td.state, since the formatted time
is already displayed in the inner div
2014-09-03 17:43:43 +02:00
Matthias Jentsch
da85112538
Merge branch 'master' into feature/svg-chart-tooltips-7024
2014-09-03 17:08:00 +02:00
Matthias Jentsch
cd8416bd3c
Add information about the source and installation of all needed jquery-tipsy files
2014-09-03 17:03:04 +02:00
Matthias Jentsch
593134203c
Add minified version of tipsy sources
2014-09-03 17:02:01 +02:00
Matthias Jentsch
b10b1ea034
Add jQuery tooltips
2014-09-03 15:53:56 +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
538c6cf90b
js/events: ignore button/submit clicks
...
In case you clicked a (submit) button in an action row this also
also triggered that row's click handler. As the event is going to be
stopped there, this leads to "unsubmittable forms". Fixed.
fixes #6963
2014-08-20 09:26:16 +02:00
Thomas Gelf
686152abf3
js/events: fix a small bug introduced right now
...
Links on non-multiselect action tables stopped working.
refs #6705
2014-08-19 19:04:29 +02:00
Alexander Fuhr
ba748cbc4a
Refactor multiSelect and highlight
...
refs #6705
2014-08-19 18:33:28 +02:00
Alexander Fuhr
6fe47bf5b0
Fix rows highlighting after refresh
...
fixes #6705
2014-08-19 17:32:17 +02:00
Thomas Gelf
f40ada6c81
js/ui: check whether a link tag has a type
...
The new favicon didn't have such, resulting in JS error when reloading
CSS at runtime.
2014-08-19 12:23:51 +02:00
Thomas Gelf
9ce99bf280
js/helpers: add $.hasAttr
...
Need this for another fix and there is no such jQuery function. As this
seems to also be inconsistant across browsers I thought this would
definitively be worth a custom jQuery plugin.
2014-08-19 12:22:36 +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
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
7958a81975
Fix that a form's submit button is not being sent when the method is GET
...
fixes #6890
2014-08-12 12:49:03 +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
Thomas Gelf
bbc0c36225
js/loader: remove pending request on form redirect
...
Our redirection helper catching forms redirecting to their source
while being shown right-hand left a pending request. Abort was triggered,
but had no effect as the request has already been completed.
fixes #6619
2014-07-07 20:12:49 +02:00
Thomas Gelf
590db51255
js/loader: handle form redirections automagically
...
An XHR redirection in a right-side container pointing to the URL
shown on the left should close it's own container and refresh the
lefthand one.
refs #6436
fixes #6435
2014-06-30 16:19:05 +02:00
Thomas Gelf
30106a9cbd
js/loader: autorefresh requests should run parallel
...
The check whether a request was already running failed as soon as
another request was activ. Now they run as they should.
2014-06-25 20:15:44 +02:00
Thomas Gelf
1385667edc
js/responsiveness: respect singlecolumn layouts
...
Target _next now depends on current layout
2014-06-24 07:46:37 +02:00
Thomas Gelf
0604d30348
js/loader: stop pending subcontainer requests
...
When redrawing a container we should cancel it's subcontainers pending
requests. This also fixes stopPendingRequestsFor(), it didn't really
work before.
2014-06-24 07:01:37 +02:00
Thomas Gelf
90bb20f4c3
js/ui: add toggleDebug function
2014-06-24 06:41:57 +02:00
Thomas Gelf
473a705e2e
Assign unique ids to dashlets and subcontainers
...
Without this we have no chance to cancel pending requests for dashlets.
fixes #6552
2014-06-24 06:40:08 +02:00
Thomas Gelf
ef0963af38
js/events: ignore javascript: in links
2014-06-24 06:35:52 +02:00
Thomas Gelf
6f19bb13b8
js/loader: ignore focus on autosubmitting elements
...
Autorefresh response is not rendered while your focus sits in a form.
This is not so useful for autosubmitting elements, let's ignore them.
2014-06-23 14:04:02 +02:00
Thomas Gelf
23ed744747
params/_render: replace it everywhere
...
Cleaning up controllers and JS, using headers only and respecting
history.
2014-06-22 20:07:44 +02:00
Thomas Gelf
aded901aa5
js/loader: reload CSS BEFORE redirecting
2014-06-22 20:01:10 +02:00
Thomas Gelf
41b8b8cf31
js/loader: remove history-related noisy log entry
2014-06-22 19:58:58 +02:00
Thomas Gelf
180a6f08f5
js/loader: notifications should survive new layout
...
Once replacing the whole layout we used to override notifications.
This is now fixed, they are going to be detached and re-attached
before and after re-rendering the page content.
2014-06-22 19:55:50 +02:00
Thomas Gelf
7444ab7d26
js/ui: add notice when reloading CSS
2014-06-22 19:47:15 +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
c0c7a815f8
Merge remote-tracking branch 'origin/master' into feature/query-interfaces-6018
2014-06-20 19:18:38 +02:00
Thomas Gelf
a79f786546
JS/loader: add icon cache prototype
...
Just playing around, I'm still unsure whether this really helps. The
motivation behind this patch are icons loaded again after not being
displayed for a little while.
Remains disabled unless we know whether and for which scenarios
(cache disabled, HTTPS...) this really helps.
2014-06-20 16:18:10 +02:00
Thomas Gelf
06a8803242
JS/loader: add failed requests to history
...
It's confusing if they are handled differently
2014-06-20 16:16:04 +02:00
Thomas Gelf
916c9c027e
forms: fix isSubmitted
...
Implementation made wrong assumptions. A form is submitted when the
submit button has been pressed. It's value is then filled, it also
is when you're just pressing "RETURN". RETURN triggers the FIRST
submit button in a form. This way we are also able to find out which
form button has been pressed.
Current implementation is still poor, however isSubmitted works as
expected right now - and so does autosubmission.
fixes #5967
2014-06-20 14:32:22 +02:00
Thomas Gelf
834a73f926
JS/ui: fix "running" timesince/timeuntil
...
Broken got this by better English ;)
2014-06-20 13:54:16 +02:00
Thomas Gelf
bd57f8f02a
JS/loader: don't autorefresh while editing
...
We would loose our focus if autorefresh takes place. So we don't render
the new content in case a form field in the very same container carries
the focus. It would be great to have a better solution one far day, but
for now it plays fine like this.
2014-06-20 13:52:05 +02:00
Thomas Gelf
76219b025b
js/events: multiple multiselect fixes
...
* Removed obsolete checks (event is only triggered for multiselect tables)
* allows deselecting last row, closing "detail view"
* fix bug when unselecting one of two rows, it used to keep the wrong one
* play nice with other involved non-row-level links
2014-06-20 13:43:18 +02:00
Thomas Gelf
f98d8f7fc5
JS/ui: create new simple filter URLs
2014-06-20 13:40:41 +02:00
Thomas Gelf
68a90b8de8
JS/ui: separate closeContainer logic
2014-06-20 13:33:19 +02:00
Thomas Gelf
28c61c2595
JS/XHR: last commit was missing the JS part
2014-06-20 13:22:53 +02:00
Matthias Jentsch
aae49ce0c0
Do not show tooltips for piechart areas that indicate empty or free areas
...
refs #6117
2014-06-18 17:38:25 +02:00
Matthias Jentsch
6555d347a7
Escape InlinePie html and adjust chart size
...
fixes #6117
2014-06-18 14:43:14 +02:00
Matthias Jentsch
be0c5d4b23
Add more meaningful tooltip labels to InlinePies
...
Show current title, a well-formated value and a label for each area in a
tooltip and add the ability to customize tooltip labels of InlinePies
refs #6117
2014-06-18 14:43:14 +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
c3eae11624
JS/IE8: fix IE8 error caused by focus()
...
No more error when using the jQuery wrapper. Focus handling is pretty
outdated, needs special care as soon as we have auto-refreshing search
fields.
2014-06-12 17:22:17 +00:00
Marius Hein
06296f29d8
UI/Sparklines: Change sparkline code to serverside only
...
fixes #6124
2014-06-06 16:35:33 +02:00
Marius Hein
4587f26476
Revert "Ui/Sparklines: Remove img src before putting it into DOM"
...
This reverts commit a75796c64d
.
2014-06-06 14:41:57 +02:00
Marius Hein
a75796c64d
Ui/Sparklines: Remove img src before putting it into DOM
...
SVG chart was fetched although we removed image tags
from DOM. This happens when text is converted into
browser DOM model to use with javascript. Small
regex remove img source attribute to avoid using
network bandwidth for unknown resources.
fixes #6124
2014-06-06 13:58:01 +02:00
Thomas Gelf
ba87cc5c4a
IE8/JS: some more console logging fixes
...
refs #6417
2014-06-06 05:23:57 +00:00
Thomas Gelf
2bf58b034b
JS/cleanup: separate redirect header handling
2014-06-05 19:37:12 +00:00
Thomas Gelf
4646b74fbc
JS/cleanup: start to clean up response handling
...
First step: get rid of the messy workaround for the problem that
notifications got lost once the whole body is re-rendered. This
should be solved either on server side or by detaching and re-
attaching existing notifications in such scenario.
2014-06-05 18:52:03 +00:00
Thomas Gelf
2d228ce83d
JS for IE8: even more JS fixes
...
refs #6417
2014-06-05 18:11:19 +00:00
Thomas Gelf
0d9f8786f9
JS for IE8: failsafe console handling & others
...
It's quite tricky to get this working. Still not perfect, but works
as expected. Also added Function.bind and Array.indexOf - absence of
both used to cause JS errors.
refs #6417
2014-06-05 15:35:38 +00:00
Thomas Gelf
ca6b373be2
JS: fix multiselect burning resources
...
Especially on browsers with slow JS like IE8 iterating again and again
over all rows used to harm response rendering. Immagine a dasboard with
a total of a few hundred rows refreshing every 10 seconds while taking
3 secs to render one dashlet... it's far better right now.
refs #6417
2014-06-05 15:16:03 +00:00
Thomas Gelf
6d321d67cd
JS/CSS: Get IE8 working
...
Just a bunch of JS and CSS improvements / fixes
refs #6417
2014-06-05 15:03:59 +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
Thomas Gelf
99aae5a0d9
JS/XHR: get ready to get XHR redirect-aware
...
These are just the first steps, there is more to come
2014-06-05 03:37:36 +00:00
Thomas Gelf
f767fb2de3
js/ui: rename timeunless to timeuntil
...
CSS filter adjusted to fit recent changes
refs #5981
2014-05-29 11:09:52 +00:00
Gunnar Beutner
d01a98b7e6
Fix some of the time-related grammar mistakes
...
This updates some of the messages to use "For"
instead of "Since" where appropriate.
fixes #5981
2014-05-29 11:30:08 +02:00
Thomas Gelf
e7e7ae72ba
Encoding: decode encoded titles
...
Related to the last commit, forgot to decode titles
2014-05-28 21:39:34 +00:00
Thomas Gelf
88460189cd
Encoding: no ASCII chars > 127 in HTTP headers
...
Had quite some trouble with this, decided to URL-encode titles and
notifications.
2014-05-28 21:34:36 +00:00
Thomas Gelf
cf6f1f8bf4
icinga/loader.js: play nice with invalid responses
...
Even responses with no HTML or no root node or similar must be rendered
successfully to their containers.
2014-05-28 15:59:42 +00:00
Thomas Gelf
886c8b1231
js/notifications: fixed target=ignore notification
...
Ongoing error handling cleanup silently dropped notifications for
requests with "invalid" target (e.g. commands not redirecting after
submission - they should not exist, but they do).
This is redundant code, but that's ok for now - response handling will
be restructured.
fixes #6327
refs #6280
2014-05-27 10:54:44 +00:00
Thomas Gelf
70ba36aad6
notifications: improve client- and serverside
...
This is just a first step, trying to catch a few gotchas:
* it doesn't send notifications to the browser when issueing a redirect
as redirects can currently not be catched in jQuery response handlers
* it tries to find a better notification handling place in the response
handler (JS) - still imperfect
* it explicitely stores sessions once modified by notifications. Still
need to crosscheck whether this is really needed and how we can get
rid of this.
refs #6280
2014-05-26 14:41:47 +00:00
Thomas Gelf
ce220c5ea7
sidebar/menu: menu should be scrollable
...
This allows us to scroll menus not fitting into available screen height.
Plays nice with menu hovering, however once you scroll down your menu
you'll temporarily disable the hover-menu-feature.
fixes #6283
2014-05-26 08:18:47 +00:00
Thomas Gelf
f32eab627a
js/forms: treat buttons like input-buttons
...
This fixes a few autosubmission-detection woes.
2014-05-20 23:55:18 +00:00
Thomas Gelf
194914917a
js/events: initialize only existing search field
...
Formlerly JS failed on layouts without menu, should be fixed now.
2014-05-20 21:55:32 +00:00
Thomas Gelf
ad91c420a0
js/loader + css: highlight containers loading slow
...
I missused the "impact" CSS class for this as it perfectly fit's this
use case. A container loading slow IS an impact. Added CSS transitions,
this way it feels better on modern browsers. The longer it takes to
load a page the darker will get it's background.
2014-05-20 14:58:58 +00:00
Thomas Gelf
de0b97b4ca
js/events: improve search field change detection
...
This used to be nasty since "search" is the field with the initial
focus. Right now we detect "real" changes, this might be implemented
in a more generic way for all autocompleting fields later on.
2014-05-20 14:07:19 +00:00
Thomas Gelf
67144407e6
js/events: do temporarily not respect tab focus
...
This has been added for keyboard navigation but caused some trouble.
Postponed for now.
2014-05-20 14:05:30 +00:00
Thomas Gelf
79d3f18b66
js/ui: remove hardcoded/duplicated with/height
2014-05-20 14:03:33 +00:00
Thomas Gelf
03e8ba88e4
Restore click behaviour for table links and rows
...
Multiselect handlers should influence only multiselect tables. Still
unhappy with current behaviour, but links should work fine right now.
refs #6162
2014-05-09 14:53:34 +00:00
Thomas Gelf
cf82ac68cc
Improve console log message on errors like 404
...
Former '404 Not found' plus weird HTML snippet is now: '404 Not Found:
Page not found. Enabling the "bpapp" module might help!'
2014-05-09 12:08:38 +00:00
Thomas Gelf
19220a5a44
Initial "click" handling for dropdown tabs
...
Still uncomplete, there are a number of edge cases that need to be
handled. Keyboard navigation is one of them, hover/click distinction
is another one.
refs #6167
2014-05-09 11:49:15 +00:00
Thomas Gelf
23679c0078
Completely ignore remote links
...
There are no issues with "returning true" so this should be the
preferred way. No need to fall back on "window.open" here.
fixes #6159
2014-05-09 11:41:18 +00:00
Thomas Gelf
e70ca26427
Detect and handle remote links
...
Currently they trigger XHR requests if not given a special target.
fixes #6159
2014-05-09 11:04:00 +00:00
Thomas Gelf
2a28e60bb7
Do not change browser title on autorefresh
...
fixes #6168
2014-05-09 10:13:49 +00:00
Matthias Jentsch
d0c56126b8
Fix inline pie reload.
...
refs #6124
2014-05-07 17:03:27 +02:00
Johannes Meyer
c711e3405d
Fix cli default log configuration and js-loader debug message
2014-05-05 16:17:21 +02: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
Matthias Jentsch
661dbea740
Fix query that finds the nearest container of a table row and stores it.
2014-04-28 09:48:06 +02:00
Matthias Jentsch
c641988233
Preserve multiselection during refresh
...
refs #5765
2014-04-28 09:48:06 +02:00
Matthias Jentsch
b791883fa8
Fix configuration checkboxes and colors in piecharts
...
refs #5765
2014-04-28 09:48:06 +02:00
Matthias Jentsch
b16c6efa05
Add PieChart to display hosts and services, improve layout and fix flag
...
checkboxes
refs #5765
2014-04-28 09:48:06 +02:00
Matthias Jentsch
081b5072a6
Fix layout of MultiController views
...
refs #5765
2014-04-28 09:48:06 +02:00
Matthias Jentsch
cb630d45ad
Fix issues issues with javascript multiselection
...
refs #5765
2014-04-28 09:48:05 +02:00
Matthias Jentsch
3b2bb3c4fc
Move functions to perform single, multi and range-selection into the ui module
...
refs #5765
2014-04-28 09:48:05 +02:00
Matthias Jentsch
6d303f1c42
Add abillity for multi and range-selection to events.js
...
Add the abillity to select multiple rows, with a multi-selection using the
CTRL-key or a range-selection using the shift-key. Also fix several issues in
the Multi-Controller of the Backend.
refs #5765
2014-04-28 09:48:05 +02:00
Thomas Gelf
649ebef287
One thing less TODO, had already been fixed two lines below
2014-04-17 16:24:40 +00:00
Johannes Meyer
80b4e3bf33
Add infinite scrolling to the timeline
...
refs #4190
2014-04-01 11:46:44 +02:00
Johannes Meyer
7440d61189
Allow target being extended by Icinga.Loader.loadUrl
2014-04-01 11:46:44 +02:00
Johannes Meyer
758fd06cfe
Trigger 'rendered' event also on page loads
2014-04-01 11:46:44 +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
d0fd25d4ef
Extend module event handler capabilities, allow for easier use
...
* introduce 'rendered' event for modules
* use this.module.on() instead of registerEventHandlers()
* no CSS filter creates event handlers on module containers
2014-03-31 08:38:00 +00:00
Thomas Gelf
afc905f090
Improve class handling on container module switch
2014-03-28 19:57:24 +00:00
Thomas Gelf
ce1e4a73eb
Remove hove menu slightly faster
2014-03-28 19:57:04 +00:00
Thomas Gelf
234bdbd46b
Remove siblings hover-menu when moving over active entry
2014-03-28 15:34:08 +00:00
Thomas Gelf
a5e41f6c08
Detect form button in JS form submission handler
2014-03-28 14:53:37 +00:00
Thomas Gelf
0c9695992f
Fine-tune hoverable menu
2014-03-27 19:55:19 +00:00
Thomas Gelf
fa903e10b6
Add menu hover support
2014-03-27 19:39:04 +00:00
Thomas Gelf
fdc39189aa
Fix naming error in last commit
2014-03-26 18:18:00 +00:00
Thomas Gelf
1f6616e7d7
Remove autorefresh data flag for containers no longer refreshing
2014-03-26 18:14:29 +00:00
Thomas Gelf
4b47841dc2
I hate flickering search result, fixed one more time
2014-03-26 18:01:20 +00:00
Matthias Jentsch
15723f088b
Include SVG piecharts in perfData helpers
...
When no JavaScript is available, SVG piecharts will be shown instead of the
jQuery sparklines.
fixes #5865
2014-03-26 14:56:35 +01:00
Thomas Gelf
8d888b3396
Do not hammer web server on auto-refreshing failures
2014-03-26 10:35:45 +00:00
Thomas Gelf
632616671d
Log jQuery info at startup, fix JS reload
2014-03-26 10:30:45 +00:00
Thomas Gelf
e4c268ca92
Add legacy jQuery, we need it for IE8
2014-03-26 10:29:20 +00:00
Thomas Gelf
965ae4e5bb
Initial commit of icinga.reload, this allows as to replace JS at runtime
...
* Works only with minified JS right now as it loads only a single file file
2014-03-26 09:28:03 +00:00
Thomas Gelf
6e9ea3a5d1
Avoid flickering when replacing CSS
2014-03-26 09:26:37 +00:00
Thomas Gelf
070573b9c0
Fix event handler declaration accessing global icinga object
2014-03-26 09:25:57 +00:00
Thomas Gelf
c846c7c3f8
Check for constructor before trying to load module JS
2014-03-26 09:25:31 +00:00
Thomas Gelf
e28f7a05eb
Pass jQuery object to icinga/utils.js
2014-03-26 09:25:01 +00:00
Thomas Gelf
b54326bf5d
Improve form submission, make use of serializeObject
2014-03-26 07:48:22 +00:00
Thomas Gelf
8dbf7b0729
Allow IcingaWeb to trigger a browser-side CSS reload
2014-03-26 07:41:23 +00:00
Thomas Gelf
48913767d3
Add a serializeObject jQuery funtion
2014-03-26 07:40:41 +00:00
Thomas Gelf
ac90ccfd22
Activate menu search form on URL path match and ignore params
2014-03-25 12:30:05 +00:00
Thomas Gelf
36f31f9f02
Fix search form autosubmission and response handling
2014-03-25 12:13:42 +00:00
Thomas Gelf
e36fb2558e
Add JS helper extending url params
2014-03-25 12:11:39 +00:00
Thomas Gelf
d8c758056f
Fix UI controls AFTER detecting a layout change
2014-03-25 07:51:33 +00:00
Thomas Gelf
ff3d351c8f
Fix all ampersands before XHR-submitting a form
2014-03-25 07:44:24 +00:00
Thomas Gelf
4ce35b5b95
Delay tab dropdown disappearance
2014-03-24 09:22:20 +00:00
Thomas Gelf
01f94c574d
Handle window-id requests, allowing us to identify distinct windows
2014-03-21 13:27:44 +00:00
Thomas Gelf
8a7ac587d9
Get rid of hardcoded target for action-tables
2014-03-21 10:27:46 +00:00