Commit Graph

381 Commits

Author SHA1 Message Date
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 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 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 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
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 9561096f4a Take care of module JS respecting recent module container changes
* Also improves generic tree behaviour
2014-03-20 09:58:28 +00:00
Thomas Gelf 77e88b24dd Merged old bug, sorry 2014-03-17 16:34:37 +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 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
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 bd0c36ad7a Allow to enable / disable running counters with a simple JS call 2014-03-09 18:02:12 +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 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 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 269b93432d Clean up button click handler on JS destroy 2014-03-07 23:39:06 +00:00
Thomas Gelf d21a356a0b Handle notifications on client side (JS) 2014-03-07 23:19:02 +00:00
Thomas Gelf d60d3d4193 Event handler for form buttons, overrides table actions etc 2014-03-07 17:12:44 +00:00
Thomas Gelf 097d3a94a4 JS "impact" handling needs improvement, first step here 2014-03-06 18:53:31 +00:00
Thomas Gelf 833bf69e6d UI: Right column cleanup on layout switch 2014-03-06 15:06:58 +00:00
Alexander Klimov b410ebeed6 Remove unnecessary spaces at end of line 2014-03-06 13:08:11 +01:00
Alexander Klimov a3ce5f2e52 JS hotfix 2014-03-06 13:01:52 +01:00
Alexander Klimov d2ec3c9509 Re-design configuration interface
Conflicts:
	public/js/icinga/events.js
2014-03-06 12:32:55 +01:00
Thomas Gelf 6286e15441 HistoryColorGrid events should be "live" 2014-03-06 09:47:53 +00:00
Thomas Gelf f8540d079c Relax hardcoded link target detection, more TBD 2014-03-06 09:42:29 +00:00
Thomas Gelf 25032204ee Reorder history logic 2014-03-06 09:41:22 +00:00
Thomas Gelf 3ad869ff23 Forgot to remove obsolete line in last commit 2014-03-06 09:39:51 +00:00
Thomas Gelf 180db36e6c timeSince timer should always be on 2014-03-06 09:25:32 +00:00
Matthias Jentsch 819e7e9806 Implement Widget to display problems as matrix over time
refs #5703
2014-03-05 20:19:09 +01:00
Thomas Gelf 9a485df81a Lot's of JS changes 2014-03-04 13:08:29 +00:00
Thomas Gelf 3cac42161b History API, initial implementation 2014-03-04 13:05:01 +00:00
Thomas Gelf 1d278617ab Whatever your browser prefers, we want to unload Icinga if you leave 2014-02-21 14:05:28 +00:00
Thomas Gelf a0e6a73ecc Added sparkline support 2014-02-21 14:03:50 +00:00
Thomas Gelf f20f27927d Window unload event support for most browsers
* Also fixes "Webserver gone away" sometimes appearing on page reload
2014-02-21 14:03:50 +00:00
Thomas Gelf 072eda70c4 Better link target discovery, support _blank 2014-02-21 14:03:49 +00:00
Eric Lippmann 8f4d062cbc JS/Dashboard: Initial XHRs must not push the URL loaded to the browser's history stack 2014-02-21 14:03:49 +00:00
Thomas Gelf ed2b330843 A few JS files where missing 2014-02-21 14:03:49 +00:00
Thomas Gelf c8c580bea0 Light new JS implementation, initial commit 2014-02-21 14:03:48 +00:00
Thomas Gelf c0a740ca9e Removed legacy icinga JS 2014-02-21 14:03:48 +00:00
Alexander Klimov 2ecf1a99a6 Show load indicator after 500 ms
fixes #5540
2014-02-03 11:10:36 +01:00
Johannes Meyer 1b5b26c2bb Add window awareness
refs #5510
2014-01-24 14:44:19 +01:00
Alexander Klimov db22945f1e Add close button to details
resolves #4925
2014-01-23 17:09:46 +01:00
Alexander Klimov 5ff081d683 Deselect tr only when ctrl key pressed 2014-01-23 16:42:04 +01:00
Eric Lippmann 2242973568 XHR: Force redirect to login if session is expired
resolves #5507
2014-01-23 16:03:47 +01:00
Eric Lippmann bbe018567f Dashboard: Render exceptions on failing requests
refs #5507
2014-01-22 14:58:23 +01:00
Jannis Moßhammer 275275f29e Fix inline commands 2013-10-23 15:11:25 +02:00
Eric Lippmann ca1d50ae53 Rename Icinga 2 Web to Icinga Web 2 2013-10-23 15:11:06 +02:00
Jannis Moßhammer aa5fb1d8cf Fix remove downtime 2013-10-23 14:34:20 +02:00
Jannis Moßhammer 1a95e48deb Fix row style, add dashboard as default route 2013-10-23 14:20:32 +02:00
Jannis Moßhammer 8eea09ab53 Add default dashboard, fix componentLoader issue introduced before 2013-10-23 13:06:09 +02:00
Jannis Moßhammer b616b652bc Fix container error message, prevent components from being loaded twice 2013-10-23 11:17:31 +02:00
Matthias Jentsch e0aae9d14b Cancel the pending request when loading a new container element
fixes #4947
2013-10-23 09:43:57 +02:00
Matthias Jentsch eaa3c81f7a Fix bug that caused the detail view to stay open, even when nothing was selected
fixes #4749
2013-10-22 17:06:05 +02:00
Jannis Moßhammer f7c0eaa7c4 Fix/Reimplement dashboard
refs #4532
2013-10-22 12:10:12 +02:00
Jannis Moßhammer cc5fa0a7b4 Fix suburls in grids not being recognized 2013-10-21 17:57:29 +02:00
Jannis Moßhammer c4f3e78c02 Fix filter behaviour, fix statusdat filter
refs #4469
2013-10-21 17:04:39 +02:00
Marius Hein 1a73747740 Implement bootstrap datepicker
refs #4929
2013-10-21 11:32:24 +02:00
Marius Hein a49691068e Add datepicker
refs #4929
2013-10-21 10:32:53 +02:00
Jannis Moßhammer f3bbf09bae Status.dat query fixes and documentation after rebase
refs #3801
2013-10-20 15:16:44 +02:00
Marius Hein 5a1a738ce7 Add form to configure objects
refs #4924
2013-10-20 13:15:11 +02:00
Marius Hein 53ab6dbbf1 Implement global command toggle form in process view
refs #4918
2013-10-19 15:28:51 +02:00
Matthias Jentsch 3f48a29c05 Fix problems caused by rebasing
refs #3788
2013-10-18 16:44:03 +02:00
Matthias Jentsch 9cba03b017 Add actual links and buttons to the multi-views
refs #3788
2013-10-18 16:44:03 +02:00
Matthias Jentsch 4133d0093d Add support for different selection modes, using a data attribute in the mainDetailGrid
Add code to handle single, multi and no selection. Add the class 'hover' to
table rows, that are selectable to indicate when a row is selectable.

refs #3788
2013-10-18 16:44:03 +02:00
Matthias Jentsch 8c416a51ce Add views and behaviour to MultiController
Add views for every possible action, fix some bugs in the JavaScript multi selection,
make selection hrefs in the list controllers unique to be able to handle the selection
properly

refs #3788
2013-10-18 16:44:02 +02:00
Matthias Jentsch b911e8c56b Add multi-object detail views
Add the controller to handle requests to the multi-detail view and fix some
bugs in the multiselection of the mainDetailGrid component

refs #3788
2013-10-18 16:44:02 +02:00
Matthias Jentsch a96331b4d6 Add support for multi-selection
Add classes to handle multi-row selection using the CTRL-Key and to
create the link for the selected query.

refs #3788
2013-10-18 16:44:02 +02:00
Jannis Moßhammer 4a95ba3468 Change url handling to detail on hashtag, add service filter
The url is now
http://%mainUrl%#%anchor%!detail=%detailUrl%
which allows us to better support IE and prevents
the detail url from appearing on the server side.

refs #4868
2013-10-17 19:55:00 +02:00
Jannis Moßhammer d33cec78de Semantic search implementation
- Only implemented for hosts as an example
- URL behaviour still has to be normalized

refs #4469
2013-10-17 19:52:52 +02:00
Jannis Moßhammer 24da98be83 Implement base filter library and tests
refs #4469
2013-10-17 19:52:25 +02:00
Marius Hein d0fe1be7f7 Add command form helper for buttons with icons or labels
refs #4869
2013-10-15 18:10:36 +02:00
Marius Hein a69c7498ec Style comments, cowntimes, properties, flags in detail pane [WIP]
refs #4869
2013-10-15 18:10:36 +02:00
Marius Hein f011b56911 Bugfix: Non existing function
refs #4400
2013-10-14 13:03:24 +02:00
Jannis Moßhammer 8aea2f4d3c Close detail on main pagination
refs #4823
2013-10-14 12:57:26 +02:00
Jannis Moßhammer 549c5d7390 Fix detail being added twice to URLs on updateContainerHref
This was caused by an redudant call to updateContainerHref in mainDetailGrid

refs #4823
2013-10-14 12:57:26 +02:00
Eric Lippmann c67ef17e86 js/link target: Replace detail container from url when the a tag's data-icinga-target attribute is set to 'detail'
refs #4823
2013-10-14 12:57:25 +02:00
Marius Hein 73ed141a5e Fix: Allow errors in body to be replaced
fixes #4736
2013-10-09 17:27:47 +02:00
Marius Hein 53d2e34e23 Finish comment view
refs #4714
2013-10-09 09:35:32 +02:00
Marius Hein d109f370cd ellipsisText: Implement ellipsis component for text content
Use by comment overview.

refs #4714
2013-10-09 09:35:32 +02:00
Eric Lippmann e9292199e7 Temporary: mainDetail: Don't trap clickable links, only rowselect loads detail
refs #4663
2013-10-09 09:20:17 +02:00
Marius Hein 571351e342 Cleanup unused js fragments for load indicator
refs #4400
2013-10-04 15:32:39 +02:00
Marius Hein 1db06637be Add frontend test for load indicator
refs #4400
2013-10-04 15:32:38 +02:00
Marius Hein 16dd53e798 Implement container load mask
refs #4400
2013-10-04 15:32:38 +02:00
Jannis Moßhammer aa110ef9fe Fix pagination in main-detail
refs #4611
2013-09-23 13:56:59 +02:00
Jannis Moßhammer 3e195501ac Fixed issues with click targets
refs #4611
2013-09-23 13:56:59 +02:00
Jannis Moßhammer 376dc8cd0f Document form and container behaviour and simplify
Now the whole page gets refreshed on container changes, if
we encounter issues with that we can improve it afterwards
or roll back some cahnges already made in previous commits

refs #4611
2013-09-23 13:56:59 +02:00
Jannis Moßhammer e6b3a54e90 Add/modify JavaScript components for main/detail and their tests
This commit introduces the following changes (although they are not
implemented in the templates, this follows):
- links in the top and navigation bar are loaded in the background
- generic main/detail container component handling click/load delegation
- mainDetailGrid implementation handling selection and render targets
- Generic history implementation handling URI change detection and reloading

refs #4611
2013-09-23 13:55:49 +02:00
Jannis Moßhammer 57e66c247a Add sort widget, change js path from module to app, small style fixes
refs #4601
2013-09-04 15:22:00 +02:00
Marius Hein 6c59d2cf40 Fix icinga js license header
refs #4622
2013-09-02 10:59:05 +02:00
Jannis Moßhammer 6db96bfb8f CS Fixes: form.js License, comments and deprecated bind()
refs #4622
2013-09-02 10:59:05 +02:00
Jannis Moßhammer c5fde2324e Generalize form handling in Icinga\Web Form & Tests
configForm.js is now form.js and applied on all forms,
the autosubmit is now a special attribute for input fields,
so the PHP code doesn't create JS snippets anymore

refs #4622
2013-09-02 10:59:05 +02:00
Jannis Moßhammer 978b3519f6 Add configform js component (will be renamed later)
refs #4622
2013-09-02 10:59:05 +02:00
Jannis Moßhammer 3a19cf8543 Reorganize and cleanup js files, add bootstrap 3
refs #4550
2013-08-23 10:27:16 +02:00
Matthias Jentsch a66934e41d Remove scripts that are no longer needed
refs #4456
2013-08-21 09:40:32 +02:00
Matthias Jentsch 7353797147 Add server-side logging when not existing components are required and fix code style issues
refs #4456
2013-08-21 09:40:32 +02:00
Matthias Jentsch 889abf55eb Fix a bug in the component loader that caused components to be loaded multiple times
refs # 4456
2013-08-21 09:40:32 +02:00