Commit Graph

1040 Commits

Author SHA1 Message Date
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 320a4080ec Dashlet: Add support for CSS animated progress labels
refs #8848
2015-08-24 12:36:35 +02:00
Eric Lippmann 4c91d42853 css: add rounded-corners mixin 2015-08-21 16:44:30 +02:00
Eric Lippmann 2760c58162 css: Add mixins.less 2015-08-21 16:40:30 +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 1cb2009dcd Animate the button when reordering authentication backends
refs #8369
2015-08-21 13:29:29 +02:00
Johannes Meyer 08aefe0b25 js: Allow buttons to animate themself
refs #8369
2015-08-21 13:28:35 +02:00
Johannes Meyer 89bc1f13ed forms.less: Prevent that the sort control "wobbles"
I love this word..

refs #8369
2015-08-21 10:53:16 +02:00
Johannes Meyer b9d64b40a4 forms.less: Fix help icon layout 2015-08-21 10:36:08 +02:00
Johannes Meyer a960f2cb4c forms.less: Animate the icon char, not the i-tag
refs #8369
2015-08-21 10:17:03 +02:00
Johannes Meyer 7dd3fc6c78 Make sure that the spinner is only animated when visible
refs #8369
2015-08-21 09:54:05 +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 ebd34422cb forms: Fix textarea layout with help icons 2015-08-20 16:53:26 +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
Johannes Meyer 291c712b44 Fix form element label style 2015-08-20 14:35:40 +02:00
Johannes Meyer 690d60672c Introduce form element decorator Spinner
refs #8369
2015-08-20 14:34:43 +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 b9e0a80479 EventHistory Overview: Show the load more link as button and centered
refs #8615
2015-08-06 12:50:17 +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
Johannes Meyer 8cf3b99335 Eventhistory Overview: Remove pagination and provide a load more link instead
refs #8615
2015-08-06 10:23:44 +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
Johannes Meyer 15ac59268c Put a small margin around show more links
refs #6677
2015-08-04 15:25:01 +02:00
Johannes Meyer 9b051cd7ce reorder-authbackend.phtml: Fix hover styles of icon-only buttons 2015-07-31 08:29:59 +02:00
Johannes Meyer 316a4d8b82 Merge branch 'master' into bugfix/allow-to-configure-how-to-manage-groups-9609 2015-07-30 16:16:04 +02:00
Johannes Meyer 0155599a1a Wizard: Use <pre> instead of <textarea> for displaying the setup's log 2015-07-30 14:13:52 +02:00
Johannes Meyer 8c71d56050 forms.less: Fix link-like styles for buttons and inputs, again 2015-07-30 14:13:06 +02:00
Johannes Meyer 6c086951dd forms.less: Place button-like styles before link-like styles 2015-07-30 13:52:36 +02:00
Johannes Meyer 1479cb4956 setup.less: Reduce button style complexity and remove unecessary styles 2015-07-30 13:51:43 +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 40d31d02bd Merge branch 'bugfix/selected-row-lost-after-autorefresh-8623'
fixes #8623
2015-07-28 15:30:32 +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
Johannes Meyer 4d9aa54814 SortBox: Utilize a separate form for each control
refs #9421
2015-07-27 11:43:47 +02:00
Johannes Meyer 4ab457a062 css: Introduce rules to hide non-js elements if js is enabled and vice versa 2015-07-27 11:40:36 +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 ccc809853a UserBackendConfigForm: Allow to manually validate the configuration
refs #7588
2015-07-24 13:46:17 +02:00
Johannes Meyer 216b762d12 Wizard: Fix layout of form hints 2015-07-24 10:28:14 +02:00
Johannes Meyer 624309774b Fix style of buttons used for reordering user backends 2015-07-24 10:14:18 +02:00
Johannes Meyer ce1cab53c8 css: Move button styles from the setup module into the framework 2015-07-24 10:11:31 +02:00
Johannes Meyer 8ed816002b forms.less: Remove redundant margin from form elements in control groups
refs #9602
2015-07-23 17:33:29 +02:00
Johannes Meyer 073243364d forms.less: Re-introduce class control-groups
refs #9602
2015-07-23 16:49:19 +02:00
Johannes Meyer 54a77b7253 Merge branch 'master' into feature/support-for-file-uploads-8758 2015-07-22 13:30:56 +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
Thomas Gelf c5d68995ec forms.less: top-align field lables and related...
...items like icons. They used to be bottom-aligned, resulting in
slightly confusing form layouts when text areas where involved.
2015-07-22 11:03:01 +02:00
Thomas Gelf d44547e469 forms.less: textarea should look like other inputs 2015-07-22 10:57:14 +02:00
Johannes Meyer cecd94be50 Merge branch 'master' into feature/support-for-file-uploads-8758 2015-07-22 08:47:24 +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 47fbc24f17 Merge branch 'master' into bugfix/improve-form-notifications-8983
Conflicts:
	library/Icinga/Web/Form.php
	modules/setup/application/forms/AdminAccountPage.php
2015-07-20 15:52:10 +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 be88683c19 layout.phtml: Add hidden iframe for non-xhr file uploads
refs #8758
2015-07-20 10:14:55 +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
Johannes Meyer 68bd24147c setup.less: Remove border from requirement sets 2015-07-06 13:41:31 +02:00
Johannes Meyer 107c9ff533 Wizard: Use a unordered list to show requirements instead of nested tables
fixes #9533
2015-07-06 13:37:37 +02:00
Johannes Meyer d27434fbb5 Wizard: Use a pointer as cursor for button-like anchors 2015-07-06 13:36:26 +02:00
Johannes Meyer aa88c3ba1b layout-structure.less: Add clearfix class 2015-07-06 13:35:46 +02:00
Johannes Meyer 9b36027f42 Wizard: Make the "button" on the finish page a bit more prominent
refs #7911
2015-07-06 09:17:58 +02:00
Johannes Meyer c8c0e13184 Wizard: Show a textarea on the finish page instead of multiple paragraphs
refs #7911
2015-07-03 16:31:11 +02:00
Johannes Meyer 5b908d85bb Form: Fix notifications
* Coding style issues
* Notifications were not grouped by type
* Notifications of sub-forms were overwriting existing ones
(cherry picked from commit 147f6be714)
2015-07-01 14:26:03 +02:00
Johannes Meyer b61c9708bb main-content.less: Use a more friendlier color for info boxes
refs #8983
2015-06-30 15:05:57 +02:00
Johannes Meyer d5ba40ac19 Form: Add hint support
Hints are short messages displayed at the bottom of a form
used to describe specific aspects on how to interact with
the form.

refs #8983
2015-06-30 15:02:58 +02:00
Johannes Meyer 147f6be714 Form: Fix notifications
* Coding style issues
* Notifications were not grouped by type
* Notifications of sub-forms were overwriting existing ones
2015-06-30 14:25:33 +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