Commit Graph

492 Commits

Author SHA1 Message Date
Thomas Gelf 83faa66167 CSS: try to hover state rows with state color
This should help your eye to recognize faster whether you hovered the
desired row and helps to distinct hovered from active / selected rows
2014-06-05 03:47:09 +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 b3f65c8e37 CSS: Try to make PDFs look better 2014-06-05 03:25:00 +00:00
Thomas Gelf 76d0b188b6 CSS: Lighter lines, border fixes 2014-06-05 03:24:30 +00:00
Thomas Gelf 248cdb5660 CSS: set default fore- and background
Just to be on the safe side...
2014-06-05 03:22:26 +00:00
Thomas Gelf e992f152bb packaging/configuration: get rid of _ENV
We should use _SERVER for our settings as it works fine on CLI and
for web servers.

refs #6400
2014-06-04 21:08:49 +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 4a2074f250 css/impact-transition: add initial delay, slower 2014-05-20 15:19:00 +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 800fe6c18d css/tabs: waste less space for dropdown
Dropdown arrow is smaller right now and is slightly rounded like the
other tabs are.
2014-05-20 14:01:14 +00:00
Johannes Meyer e1230eb8ae Add style and view scripts for first prototype
refs #6136
2014-05-14 12:53:44 +02:00
Thomas Gelf 7153e41ada CSS: Highlight a couple of elements on focus
Menu, tabs, hover menu and dropdown tabs. Keyboard navigation starts
making sense right now.

refs #6164
2014-05-09 16:09:03 +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 681cdee68d Move hover menu downward
fixes #6169
2014-05-09 10:15: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 a1d8647c96 Attempt to make it easier to distinct colors, old ones still commented 2014-04-17 16:43:03 +00:00
Thomas Gelf 57097bba16 Show menu with JS disabled (more related fixes still to come)
* fixes #5918
2014-04-17 16:25:59 +00:00
Thomas Gelf 649ebef287 One thing less TODO, had already been fixed two lines below 2014-04-17 16:24:40 +00:00
Thomas Gelf 83b26bc595 JS-less iFrame rendering improvements 2014-04-17 16:20:03 +00:00
Johannes Meyer 2049e42988 Show a horizontal line when the timeline switches its context
refs #4190
2014-04-01 11:46:44 +02: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
Johannes Meyer c94cd40b92 Center timeframe elements vertically
refs #4190
2014-04-01 11:46:44 +02:00
Johannes Meyer e3be5dd255 Restructure timeline layout and styles
refs #4190
2014-04-01 11:46:44 +02:00
Johannes Meyer 8e7d1dd8f6 Improve timeline style
refs #4190
2014-04-01 11:46:44 +02:00
Johannes Meyer 6d8199e7df Fix the timeline's floating if javascript is not enabled
refs #4190
2014-04-01 11:46:43 +02:00
Johannes Meyer f5e4331d71 Add timeline view script and styles
refs #4190
2014-04-01 11:46:43 +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
Johannes Meyer 77403d55d6 Fix firefox specific graphical bugs in the servicematrix view 2014-03-31 10:54:02 +02: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
Johannes Meyer c03268414f Fix pivot table pagination being to narrow when only one vertical level exists 2014-03-28 08:57:27 +01: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 03e59bb7b0 Clean up .htaccess
* fixes #5740
2014-03-27 07:39:30 +00:00
Thomas Gelf cb5d90ad41 Simplify pre-bootstrapping web routing 2014-03-27 07:25:53 +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 999e83d433 Unify icon styles, default size definition for all icons 2014-03-25 08:24:50 +00:00
Thomas Gelf 3afa70c494 Improve tabs and dropdown tabs styling 2014-03-25 08:02:21 +00:00
Thomas Gelf d8c758056f Fix UI controls AFTER detecting a layout change 2014-03-25 07:51:33 +00:00
Thomas Gelf bfb123eec7 Tables should use full with, outer elements take care of margins 2014-03-25 07:45:20 +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 b5b4d276d1 Add more structure to host and service details 2014-03-21 18:56:55 +00:00
Thomas Gelf b451af5fe7 Fix dropdowntab margins 2014-03-21 13:30:24 +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 252feba64c Try to reduce CSS exceptions, less is more 2014-03-21 10:54:16 +00:00
Thomas Gelf 8a7ac587d9 Get rid of hardcoded target for action-tables 2014-03-21 10:27:46 +00:00
Thomas Gelf e8a783a44a Better JS link target detection, fix a few edge cases 2014-03-20 15:41:36 +00:00
Thomas Gelf e1de4e384a Rudimentary anchor name escaping 2014-03-20 14:07:43 +00:00
Thomas Gelf edc3deeec8 Handle anchors in links 2014-03-20 11:25:10 +00:00
Thomas Gelf 25f12157f5 Do not remove intendation for all lists by default 2014-03-20 11:25:10 +00:00
Johannes Meyer bf717654f0 Add more consistency to the servicematrix when switching pages 2014-03-20 11:30:55 +01:00
Thomas Gelf 9561096f4a Take care of module JS respecting recent module container changes
* Also improves generic tree behaviour
2014-03-20 09:58:28 +00:00
Johannes Meyer aa6d6b1d41 Make servicematrix x-axis header titles linking to filtered servicelist 2014-03-20 09:41:41 +01:00
Johannes Meyer 44950ea570 Fix servicematrix styling issues in firefox and ie 2014-03-20 09:22:29 +01:00
Johannes Meyer e9ec87b0e3 Refine styling of the servicematrix
refs #4180
2014-03-19 09:11:25 +01:00
Johannes Meyer c73928d7a8 Add pagination control to the servicematrix
refs #4180
2014-03-19 09:11:25 +01:00
Johannes Meyer 5dc7d0dd56 Fix servicematrix layout in case there are only a few services being shown
refs #4180
2014-03-19 09:11:24 +01:00
Johannes Meyer 71f4b6960b Add servicematrix view
refs #4180
2014-03-19 09:11:24 +01:00
Thomas Gelf 77e88b24dd Merged old bug, sorry 2014-03-17 16:34:37 +00:00
Thomas Gelf 8dba84e535 Re-adding z-index to .controls, leaving it away doesn't work as expected 2014-03-17 16:20:02 +00:00
Thomas Gelf a8cecfa162 Shorten tree-specific event handler 2014-03-17 16:17:10 +00:00
Thomas Gelf e0c93d6ca7 JS cleanup
* Precedence rules: skip autorefresh if click is pending
* Clean up the attr VS data mess
* More steps towards a column-count-ignorant GUI
2014-03-17 17:10:03 +01:00
Thomas Gelf 2febbdd7d5 One more safety measure for IEs weird way of providing a JS console 2014-03-17 17:06:31 +01:00
Thomas Gelf 9a142dacd5 Starting to prepare CSS for "real" responsiveness 2014-03-17 16:29:18 +01:00
Alexander Klimov 5c3df3db15 Handle not readable monitoring config files more intelligent 2014-03-13 15:54:27 +01:00
Thomas Gelf f1f1813b04 Activate only the first match if multiple menu items carry the same URL 2014-03-12 00:44:30 +01:00
Thomas Gelf e0be89a1dc Apply history also on page load 2014-03-10 14:48:40 +00:00
Johannes Meyer e291974e55 Refine tactical overview style 2014-03-10 15:09:53 +01:00
Johannes Meyer 55dc579aa0 Refine contactgroup styling 2014-03-10 09:20:44 +01:00
Thomas Gelf 448d7c1a8d Fix PDF output wherever it works, disable dead filter control 2014-03-10 01:24:45 +01:00
Thomas Gelf 84876059f5 Remove obsolete pdf.css 2014-03-10 01:04:21 +01:00
Thomas Gelf 347186e282 No automagic button for autosubmitted form 2014-03-09 23:38:55 +01:00
Thomas Gelf fcd05dfe81 Improve click/site behaviour 2014-03-09 23:30:37 +01:00
Michael Friedrich 0598930b09 Fix minus null minutes again. 2014-03-09 22:27:36 +01:00
Michael Friedrich ef73bb13d3 Refactor timeUntil for negative values. 2014-03-09 22:19:05 +01:00
Thomas Gelf ee01b28646 Replace tabs with whitespaces 2014-03-09 21:16:56 +01:00
Michael Friedrich 2883fa0bd0 Fix JS Time unless counter.
There is still a small glitch with the global refresh of 10s
sometimes setting an empty string for next_check.

Try check_interval = 5s with Icinga 2.
2014-03-09 20:27:10 +01:00
Thomas Gelf 48e0616ba4 Different color for disabled form elements 2014-03-09 20:26:19 +01:00
Thomas Gelf bd0c36ad7a Allow to enable / disable running counters with a simple JS call 2014-03-09 18:02:12 +01:00
Thomas Gelf 795e0a378d Form restyle proposal 2014-03-09 01:56:34 +01:00
Thomas Gelf f31e697d72 Handle _blank and similar links in JS as 'return true' seems unreliable 2014-03-09 00:58:49 +01:00
Thomas Gelf 959967c646 Fix logout button "sometimes not working" and similar 2014-03-08 23:58:19 +01:00
Thomas Gelf a03f24b7ed Temporary fix for 1px issue with controls header on FF 2014-03-08 20:07:00 +01:00
Thomas Gelf 62b7c71ff2 The avp table is the one I wanted to fix 2014-03-08 19:53:16 +01:00
Thomas Gelf 07f76a631a AVP table should not influence perfdata table sitting there 2014-03-08 19:48:07 +01: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 485222492b Removed on noisy chatter from JS debug 2014-03-08 17:21:39 +01:00
Thomas Gelf eb517f0a40 Make command forms "inline", remove missing icon 2014-03-08 17:01:27 +01:00
Thomas Gelf ac0980b111 Just comments 2014-03-08 16:20:30 +01:00
Thomas Gelf 227b65558c Move link / form action target detection to one central place 2014-03-08 15:25:10 +01:00
Thomas Gelf 8de42139d3 Move layout functions to ui.js 2014-03-08 15:08:03 +01:00
Thomas Gelf 7e2d6cd5c2 ui.js indentation 2014-03-08 15:04:09 +01:00
Thomas Gelf 415193f9de Just a comment 2014-03-08 15:01:57 +01:00
Thomas Gelf 62dd827ce2 Cleanup, shorten and document the onClick event handler 2014-03-08 14:53:17 +01:00
Thomas Gelf d1c5e6da14 Sorry, no default values for JS functions 2014-03-08 12:17:56 +01:00
Thomas Gelf 71aea4dfc7 Responses with not output (container: ignore) must of course be handled in JS 2014-03-08 12:07:49 +01:00
Thomas Gelf cff89e3f9a Demo Vagrant box is looking for a tux - here you go ;) 2014-03-08 12:06:28 +01:00
Thomas Gelf d234a87e84 Introduce new detail section headers fitting the rest of the layout 2014-03-08 00:17:42 +00:00
Thomas Gelf 269b93432d Clean up button click handler on JS destroy 2014-03-07 23:39:06 +00:00