Commit Graph

811 Commits

Author SHA1 Message Date
Thomas Gelf 0edcfdee33 icinga/ui.js: don't spend time for UI debug...
...while not being shown.

fixes #3115
2017-11-21 12:27:15 +01:00
lippserd 27867494ff
Merge pull request #2798 from towolf/suspend-autorefresh-when-invisible
Disable auto-refresh when page is not visible
2017-11-06 09:48:31 +01:00
Jennifer Mourek 3a8ba39abd Disable auto-refresh when page is not visible
credits to @towolf

Icinga offers the user to enable or disable 'auto-refresh' with a
static preference.

But 'auto-refresh' is the default and our users often have dozens of
Icinga tabs open in their browser, which they are not looking at.

The background tabs lead to significant load on the database to to
repeated queries to keep the invisible UI fresh.

This change adds a visibility listener, which disables auto-refresh when the
page is not visible.

refs #2761
2017-10-26 13:53:25 +02:00
Florian Strohmaier aab32214d6 JS: Close menu correctly after searching on iOS
fixes #2922
2017-09-21 17:52:51 +02:00
Eric Lippmann fe12ed05e3 Fix menu height when switching back from mobile layout
Fixes #2841
2017-07-28 13:44:21 +02:00
Alexander A. Klimov cb2093513a Icinga.Timer: use setTimeout() instead of setInterval()
refs #11693
2017-02-10 10:14:14 +01:00
Michael Friedrich 08a82daea3 Update to icinga.com
refs #2687
2017-01-18 12:04:43 +01:00
Florian Strohmaier e56b568050 Merge branch 'master' of git.icinga.org:icingaweb2 2016-12-13 13:53:53 +01:00
Florian Strohmaier 14b325aff4 Fix header height when announces shown 2016-12-13 13:53:23 +01:00
Eric Lippmann 08571ce01c Fix exception in navigation.js 2016-12-13 13:31:46 +01:00
Florian Strohmaier f0bc12d2c0 Fix jumping header when reloading
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2016-12-13 12:14:01 +01:00
Eric Lippmann e030229d7f Fix CSS issues when rerendering the layout
fixes #13467
2016-12-12 15:02:51 +01:00
Eric Lippmann 67e41af308 Fix navigation behavior not clearing active items properly 2016-12-12 15:02:28 +01:00
Eric Lippmann aa559c4636 Merge branch 'bugfix/actiontable-row-handling-13115'
fixes #13115
2016-12-09 13:49:27 +01:00
Eric Lippmann 626afbd5ec Merge branch 'bugfix/always-use-the-jquery-find-method-w/-node-context-10704'
fixes #10704
2016-12-08 17:15:02 +01:00
Eric Lippmann 177d4c770d JS: Optimize navigation behavior by using the #menu selector for the onRendered event
refs #10704
2016-12-08 16:56:25 +01:00
Eric Lippmann eef982f3c3 Don't stop auto-refresh when a form button has focus 2016-12-08 10:40:22 +01:00
Eric Lippmann 39c7451664 Implement announcements
refs #11198
2016-11-29 15:24:34 +01:00
Eric Lippmann e9e66930d5 Remove obsolete dropdown methods from the navigation behavior 2016-11-28 12:13:10 +01:00
Florian Strohmaier bd5a2ebaa3 Move status summary in the host and service list views to the bottom of the page
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2016-11-24 10:42:14 +01:00
Eric Lippmann 875d42c0a6 Revert "Merge branch 'bugfix/always-use-the-jquery-find-method-w/-node-context-10704'"
This reverts commit f517c62fde, reversing
changes made to d1fd7e4be7.

refs #10704
2016-11-21 14:34:58 +01:00
Eric Lippmann f517c62fde Merge branch 'bugfix/always-use-the-jquery-find-method-w/-node-context-10704'
fixes #10704
2016-11-21 14:33:43 +01:00
Thomas Gelf d1fd7e4be7 loader.js: place focus at the end of text inputs 2016-11-21 11:39:03 +00:00
Alexander A. Klimov 3363e6795f JS: use $(parent).find(child) instead of $(child, parent)
refs #10704

Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2016-11-21 10:46:31 +01:00
Thomas Gelf ce6fa235cb js/loader: do not steal focus placed by module 2016-11-16 10:49:28 +00:00
Thomas Gelf 0f58776b4e actiontable: gracefully clear and improve...
...state preservation

refs #13115
2016-11-16 09:38:44 +00:00
Jennifer Mourek 3338040952 actiontable.js: Update row counter when detail area is closed
refs #10691
2016-10-28 08:08:42 +02:00
Eric Lippmann 118c435bc5 JS: Fix usage of global variable self used to reference icinga in events.js
refs #10703
2016-09-09 13:22:10 +02:00
Eric Lippmann 7e47a2965c JS: Fix usage of global variable self used to reference icinga in loader.js::onComplete()
refs #10703
2016-09-09 13:22:08 +02:00
Alexander A. Klimov cf5e26c56c Avoid local variable name `self' in ui.js
refs #10703
2016-09-01 16:32:31 +02:00
Alexander A. Klimov 4f52beb32a Avoid local variable name `self' in module.js
refs #10703
2016-09-01 16:30:01 +02:00
Alexander A. Klimov 56c10ffdd5 Avoid local variable name `self' in loader.js
refs #10703
2016-09-01 16:28:57 +02:00
Alexander A. Klimov e726f10e68 Avoid local variable name `self' in history.js and timer.js
refs #10703
2016-09-01 16:16:55 +02:00
Alexander A. Klimov 3c43d38171 Avoid local variable name `self' in events.js
refs #10703
2016-09-01 16:16:55 +02:00
Alexander A. Klimov 4e2c626ae0 Avoid local variable name `self' in eventlistener.js
refs #10703
2016-09-01 16:16:49 +02:00
Alexander A. Klimov 060a82fa4a Avoid local variable name `self' in tooltip.js and tristate.js
refs #10703
2016-09-01 15:58:32 +02:00
Alexander A. Klimov 0d7f8148de Avoid local variable name `self' in navigation.js
refs #10703
2016-09-01 15:49:39 +02:00
Alexander A. Klimov 0059622bba Avoid local variable name `self' in form.js
refs #10703
2016-09-01 15:42:54 +02:00
Alexander A. Klimov 311fd36326 Avoid local variable name `self' in actiontable.js
refs #10703
2016-09-01 15:21:45 +02:00
Alexander A. Klimov f72411c628 Avoid local variable name `self' in icinga.js
refs #10703
2016-09-01 15:09:50 +02:00
Johannes Meyer 1993ae2ed2 js: Fix that the menu is not reloaded in case no search is available
fixes #12541
2016-08-25 08:54:04 +02:00
Eric Lippmann cefdc496ef Forms: Remember submit from click event before
This helps Safari to determine the correct clicked or pressed submit button in case the form has more than one.
2016-06-27 10:41:16 +02:00
Alexander A. Klimov 4a78fa6a66 List views: handle clicks on mailto: and http:// links as expected
refs #11267
2016-06-02 10:43:34 +02:00
Marc DeTrano 621c0dbcad Support data URIs in href
resolves #11495

Signed-off-by: Eric Lippmann <eric.lippmann@netways.de>
2016-04-13 12:59:09 +02:00
Eric Lippmann 93b50fe484 Refresh menu but keep search text if not focused
fixes #11128
2016-04-11 14:24:23 +02:00
Eric Lippmann 31adfb8a9f Don't add the port twice when reloading CSS 2016-04-06 12:09:49 +02:00
Florian Strohmaier 9e0bee5006 Fix mispositioned mobile menu icon
fixes #11099
2016-03-31 14:00:27 +02:00
Thomas Gelf b6fd4f5584 events.js: do not apply event handlers without...
...an Icinga object. Added a log line, eventually we'll catch this one
far day :)
2016-02-29 22:11:30 +01:00
Thomas Gelf 28204762ab js: fix urls for dynamic css/js reloads 2016-02-29 21:40:48 +01:00
Thomas Gelf 96f50c5dfa loader.js: fix JS error on IE 2016-02-29 21:18:46 +01:00
Thomas Gelf 29eedc1d4a navigation.js: remove forgotten console.log 2016-02-29 21:08:26 +01:00
Florian Strohmaier 0c34c20640 Prepare close-container for behavior implementation
refs #8590
2016-02-27 15:07:10 +01:00
Alexander A. Klimov af18334e3e Cookie icingaweb2-tzo: use `-' as separator
fixes #11126
2016-02-25 13:21:34 +01:00
Alexander A. Klimov a2a96be8c9 Display ISO date and time when a connection was lost
refs #10625
2016-02-22 11:24:19 +01:00
Alexander A. Klimov c4a69191a3 JS: implement Icinga.Utils.padString()
refs #10625
2016-02-22 11:14:41 +01:00
Alexander A. Klimov dc6ea11415 JS: Encode URLs shown in responsive debug element 2016-02-19 14:27:14 +01:00
Alexander A. Klimov 11ea7d99d7 Escape messages of notifications loaded by JavaScript 2016-02-19 14:10:58 +01:00
Alexander A. Klimov a493c3469c JS: implement Icinga.Utils.escape() 2016-02-19 14:05:05 +01:00
Alexander A. Klimov 474803fee4 Change all license headers to only reflect a file's year of creation
refs #11000
2016-02-08 15:41:00 +01:00
Eric Lippmann e468329051 JS: Keep search field focus
fixes #11029
2016-02-02 08:40:35 +01:00
Eric Lippmann b5cbf49433 JS: Fix login autofocus 2016-01-28 12:29:42 +01:00
Eric Lippmann 41c942d197 JS: Maintain auto-refresh interval over redirects
This is far from beautiful. But JS needs a revamp anyway.
Request should be an object and should be passed from function to function in order to maintain state.
2016-01-27 09:19:12 +01:00
Eric Lippmann c963ee23ff JS: Ignore autosubmit elements in the form behavior 2016-01-27 09:12:42 +01:00
Eric Lippmann 7ede8124cb Pagination: Focus active after next or prev exceeded
I'd like to see behaviors for components instead of patching loader/events all the time.
2016-01-25 07:23:12 +01:00
Eric Lippmann 4c4e8e4ac2 monitoring: Re-focus check now and alike 2016-01-22 13:33:59 +01:00
Eric Lippmann 2f9ffa65d7 JS: Ignore ids forms and form controls in getCSSPath()
Id generation is unreliable.

refs #10992
2016-01-20 18:10:04 +01:00
Eric Lippmann e1eb505986 JS: Maintain autosubmit focus 2016-01-18 13:28:36 +01:00
Eric Lippmann ebab4e8473 JS: Ignore ids startings w/ form_ in getCSSPath
protectId makes ids change over subsequent requests.
2016-01-18 13:27:02 +01:00
Eric Lippmann 7a6d61ceaa JS: Re-focus visible elements only
Don't try to re-focus links from dropdown tabs example because they're no longer visible if the page has been loaded.
2016-01-18 12:50:27 +01:00
Eric Lippmann 3ab5b5b721 Fix skip to content jump link 2016-01-18 12:50:27 +01:00
Eric Lippmann 81d73bb5e4 JS: Try to maintain focus 2016-01-18 12:50:27 +01:00
Eric Lippmann b515eaa076 JS: Introduce getCSSPath
getCSSPath returns the CSS path to a given jQuery element. We have getDomPath which is not robust enough and
getElementByDomPath which makes no sense because getDomPath could already return a selector suitable for jQuery.
getCSSPath is meant to replace both of them.
The function is far from perfect, as its lacking class consideration and optimization.
2016-01-18 12:50:27 +01:00
Eric Lippmann a262d13f86 Interpret onload ajax requests for the detail column as auto-refresh
This is a preperation for programmatically focusing the target container of a followed link for accessibility reasons.
Automated focusing of the target container must not happen if the request is a auto-refreshing one. Thus onload requests
are now flagged as auto-refresh.
2016-01-18 12:50:27 +01:00
Eric Lippmann 66c4b9a3da Fix dropdown losing focus when navigating w/ the keyboard 2016-01-12 08:52:30 +01:00
Eric Lippmann 7c1ccc685f Rename close-toggle to close-container-control 2016-01-12 08:52:30 +01:00
Eric Lippmann 267aa0d3a2 Remove forgotten console.log from ui.js 2016-01-12 08:52:30 +01:00
Eric Lippmann b1049f2aed Prepare .controls for removing padding
refs #10871
2016-01-12 08:52:30 +01:00
Eric Lippmann 1c5ada2531 Remove hover effects from mobile menu 2015-12-22 14:32:04 +01:00
Eric Lippmann 447ebeb0b6 JS: Optimize mobile menu code 2015-12-22 14:01:45 +01:00
Eric Lippmann 887a688781 Quick-fix mobile menu
Will be reworked asap.
2015-12-21 14:06:42 +01:00
Eric Lippmann 1b196e61a6 Ignore application-state requests on setup 2015-12-21 13:03:58 +01:00
Eric Lippmann 6e9b9cb8d6 JS: Add autofocus behavior
refs #10671
2015-12-21 13:03:08 +01:00
Eric Lippmann f5dac49330 Don't fire application-state requests if not authenticated
fixes #10749
2015-12-16 12:55:41 +01:00
Eric Lippmann 8006090108 Merge branch 'feature/theming-10705'
resolves #10705
2015-12-16 12:49:11 +01:00
Eric Lippmann 30124f384e JS: Improve selector used in the selectable behavior 2015-12-16 12:48:02 +01:00
Eric Lippmann 755f361e4c Add behavior for dropdown navigation items
Dropdown navigation is not yet accessible. The added behavior listens for activity on dropdown-navigation-item for toggling the CSS class active.
2015-12-16 12:48:02 +01:00
Eric Lippmann 12a39568b7 JS: Remove unused variable in sparkline behavior 2015-12-16 12:48:02 +01:00
Eric Lippmann 99f0a348c5 Disable transitions on page load 2015-12-15 13:29:30 +01:00
Eric Lippmann 5b898d5f3b JS: Don't activate a menu item if only a part of the current URL matches
Else, navigating to user -> preferences -> navigation activates configuration -> shared navigation for example.
2015-11-20 09:39:53 +01:00
Eric Lippmann 583a4985c0 Add mobile menu
fixes #8999
2015-11-16 14:21:08 +01:00
Eric Lippmann 0cc54ce34b Refresh session every 10 minutes
Quick and dirty fix.

fixes #10229
2015-11-16 14:19:33 +01:00
Eric Lippmann fefdfe3d7b JS: Reduce code for the sparkline behavior
refs #5543
2015-11-11 15:23:45 +01:00
Eric Lippmann e1e1a535ee JS: Remove unnecessary space in Navigation::onRendererd()
refs #5543
2015-11-10 09:31:52 +01:00
Eric Lippmann 68777b2b6a JS: Don't use deprecated jQuery function size() in navigation.js
refs #5543
2015-11-09 16:44:37 +01:00
Eric Lippmann 70d7f7f669 JS: Fix doc of navigation::onRendered()
refs #5543
2015-11-09 16:44:19 +01:00
Eric Lippmann bb432fcc68 JS: Use _this when saving a reference to this in Navigation::onRendered()
There a tons of places where we use self instead of _this. self is a global variable in modern browsers.

refs #5543
2015-11-09 15:55:23 +01:00
Thomas Gelf ed69bd5d99 Tables: rename action-table to table-row-selectable 2015-11-04 15:39:35 +01:00
Johannes Meyer 68297f0630 Revert "loader.js: Do not push redirects to history"
This reverts commit e99cdb66ef.
2015-10-02 11:46:44 +02:00
Johannes Meyer 8e94f3e58e Revert "Revert "Fix logout loop (testing), #2""
This reverts commit 967c3552e5.
2015-10-02 11:46:44 +02:00
Johannes Meyer 967c3552e5 Revert "Fix logout loop (testing), #2"
This reverts commit 6affad6895.
2015-10-02 11:36:06 +02:00
Johannes Meyer e99cdb66ef loader.js: Do not push redirects to history 2015-10-02 11:36:06 +02:00
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