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