Florian Strohmaier
574c76ab42
Improve mobile menu
2019-05-06 14:49:41 +02:00
Johannes Meyer
43c87d2388
loader.js: Return in onComplete upon handled redirects
...
Got changed with f12a5741b8
. Triggering
rendered events for stuff that's never displayed doesn't seem right.
2019-04-30 09:23:59 +02:00
Johannes Meyer
50f5aa0ac3
Revert "utils.js: Utilize ids of forms and elements in getCssPath"
...
This reverts commit c835f02953
.
2019-04-25 10:11:45 +02:00
Johannes Meyer
f72aa291bc
Merge pull request #3610 from Icinga/fix/window-id-cannot-be-used-to-differentiate-containers-3609
...
Fix window id cannot be used to differentiate containers
2019-04-17 11:38:48 +02:00
Johannes Meyer
c835f02953
utils.js: Utilize ids of forms and elements in getCssPath
...
They're now reliable again :)
fixes #2238
2019-04-17 11:25:10 +02:00
Johannes Meyer
4900040d47
js: Restore previous title when closing right column
...
fixes #3654
2019-04-16 09:29:42 +02:00
Johannes Meyer
d8c4fcc517
Merge pull request #3661 from Icinga/feature/preserve-scroll-position-upon-form-submits
...
Preserve scroll position upon form submits
2019-04-16 08:04:15 +02:00
Johannes Meyer
cb3528a7be
js: Don't scroll to re-focused elements after auto-refreshes
...
refs #2048
refs #3295
refs #3492
refs #3518
2019-04-15 15:42:14 +02:00
Johannes Meyer
f54f2f8627
js: Prevent flickering when refreshing scrolled content
2019-04-15 14:27:14 +02:00
Eric Lippmann
915c7b8fe5
Merge pull request #3504 from Icinga/fix/collapsible-sidebar-issues-3187
...
Fix collapsible sidebar issues
2019-03-21 09:09:27 +01:00
Jennifer Mourek
2c1abe13a1
Make ctrl-click open new tab
...
refs #3722
2019-03-20 14:19:14 +01:00
Jennifer Mourek
b3b80fdc31
Make active first-level nav items better distinguishable
2019-03-20 11:07:39 +01:00
Jennifer Mourek
2e5515274e
Adjust sidebar lug size and reduce flyout delay
2019-03-20 11:07:39 +01:00
Johannes Meyer
27569d09d8
loader.js: Preserve scroll position also for form submits
...
Restores the scroll position if:
* it's been a POST request
* the source and target url path is the same
* the target's url params do not change significantly
2019-01-10 15:32:28 +01:00
Johannes Meyer
d2214ef0e4
loader.js: Pass-through previous request when peforming a redirection
2019-01-10 15:31:39 +01:00
Johannes Meyer
29a8184548
loader.js: Remember a request's method
2019-01-10 15:30:48 +01:00
Johannes Meyer
2a5a403573
utils.js: Add new method objectsEqual()
2019-01-10 15:30:05 +01:00
Eric Lippmann
f8295ea825
Revert "Fix menu flickering on reload and broken layout w/o JS"
...
This reverts commit 3b06f06a04
.
Breaks announcements.
2018-11-20 10:17:27 +01:00
Eric Lippmann
3b06f06a04
Fix menu flickering on reload and broken layout w/o JS
...
fixes #3629
fixes #3630
2018-11-20 10:06:41 +01:00
Eric Lippmann
f0f9ab0eb7
JS: Simplify Date.isDst()
2018-11-16 09:00:32 +01:00
Eric Lippmann
fbc7598a6b
JS: Simplify Date.getStdTimezoneOffset()
...
refs #3607
2018-11-16 09:00:32 +01:00
h0rmiga
d9b337a213
JS: Fix DST detection
...
refs #3607
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2018-11-16 09:00:19 +01:00
Johannes Meyer
c8a49414b1
js: Append a unique container id to the Window-Id
...
Generates a semi-random id for containers other than the menu and col1.
This id is then appended to the Window-Id of every request separated by
an underscore: `window-id_container-id`
refs #3609
2018-11-07 12:44:25 +01:00
Johannes Meyer
8212c51f8d
js: Already set `window.name` prior bootstrapping our js runtime
...
Makes sure that the Window-Id already generated and utilized by the
server on the first request is used by subsequent requests instead
of a new one.
Also avoids that concurrent running id-less requests compete about
which one may set his assigned id. Now any subsequent request
already transmits the id assigned to the first one.
And it resets `window.name` in case the user performs a manual
refresh so that the id used by the server is set/utilized.
refs #3609
2018-11-07 09:13:16 +01:00
Florian Strohmaier
d1cbc4b05c
JS: Remove excessive scroll events
2018-10-16 15:41:33 +02:00
Eric Lippmann
84e0c0c4fb
Merge pull request #3518 from Icinga/fix/anchor-navigation-not-working-3492
...
loader.js: Make anchor navigation working again
2018-07-16 10:00:35 +02:00
Johannes Meyer
5f4aa1e296
loader.js: Make anchor navigation working again
...
fixes #3492
2018-07-10 10:50:31 +02:00
Eric Lippmann
d18d05ccee
Introduce ApplicationStateHook
...
refs #2835
2018-07-09 16:28:25 +02:00
Johannes Meyer
990df95f36
loader.js: Allow to force HTTP to be used for JS redirection
2018-07-04 14:44:03 +02:00
Johannes Meyer
9294c830f8
tipsy: Don't use opacity but rgba to avoid having transparent text
...
refs #3418
2018-04-26 13:39:50 +02:00
Eric Lippmann
7fc9d7995f
Merge pull request #3425 from Icinga/fix/avoid-unnecessary-search-requests-3348
...
Don't search as long as the user is typing
2018-04-25 03:08:47 -04:00
Johannes Meyer
c2b3bbb87b
events.js: Don't search as long as the user is typing
...
500ms is for the average typist. Still fast enough, imho.
refs #3348
2018-04-24 12:33:04 +02:00
Johannes Meyer
9857021d2c
Revert "loader.js: place focus at the end of text inputs"
...
This reverts commit d1fd7e4be7
.
Browsers seem to do this on their own natively. Way better.
refs #3348
2018-04-24 11:18:10 +02:00
Alexander A. Klimov
41b105136d
Preserve collapsed FilterEditor subtrees across auto-refreshes
...
refs #2964
2018-04-06 13:54:51 +02:00
Alexander A. Klimov
38438449e4
Revert "Performance data: render pie charts without freezing the UI"
...
This reverts commit f2b2b6a91a
.
refs #3344
2018-04-06 09:36:24 +02:00
Johannes Meyer
7483a168f9
actiontable.js: Use `event.currentTarget` instead of the closest tr
...
This event is triggered due to delegation. If any onclick event is able
to bubble up this far that it gets triggered we can safely use whatever
it has been triggered for. (i.e. it can only be a tr[href])
refs #3298
2018-01-22 13:23:28 +01:00
lippserd
0b9ae48530
Merge pull request #3288 from Icinga/bugfix/performance-problem-lots-of-performance-data-2894
...
Performance data: render pie charts without freezing the UI
2018-01-19 16:16:54 +01:00
Alexander A. Klimov
f2b2b6a91a
Performance data: render pie charts without freezing the UI
...
refs #2894
2018-01-19 16:14:42 +01:00
Alexander A. Klimov
68870ca411
Icinga.Loader.prototype.renderContentToContainer(): preserve scroll position despite the focus
2018-01-19 15:32:54 +01:00
lippserd
f92c35c193
Merge pull request #3262 from Icinga/bugfix/browser-history-multiple-columns-2779
...
Make navigation via browser history working as expected
2018-01-17 12:03:03 +01:00
Alexander A. Klimov
5a7ecb825a
Drop unneccessary browser history steps
...
... which are non-desired columns contents combinations
refs #2779
2018-01-16 12:25:22 +01:00
Alexander A. Klimov
1f61744b57
Make search reset control working across auto-refresh
...
refs #2753
2018-01-15 15:09:50 +01:00
lippserd
83faa2671c
Merge pull request #3174 from Icinga/fix/fullscreen-layout
...
Don't discard fullscreen when detecting the layout
2017-12-15 10:13:05 +01:00
Eric Lippmann
cb83a7dea3
JS: Always request application-state
...
Icinga Web 2 version 2.5.0 suspends auto-refresh if the tab is inactive.
This also pauses the application-state requests which are intended to refresh the session and announcements.
If a tab is inactive for longer than the PHP session timeout (session.gc_maxlifetime in php.ini), users are automatically logged out.
With this patch Web 2 will always request application-state. Even if auto-refresh is disabled.
2017-12-04 14:25:23 +01:00
Eric Lippmann
e77c3c8169
Don't take fullscreen into account when detecting the layout
...
The fullscreen-layout class is just a layout modifier.
2017-11-29 15:12:51 +01:00
Alexander A. Klimov
48133aae91
Flyover: select #main instead of div#main
2017-11-27 16:51:55 +01:00
Alexander A. Klimov
59054dd01c
Collapse all expanded flyovers on any click not inside any flyover
2017-11-27 16:35:18 +01:00
Alexander A. Klimov
8afd2f8a32
Handle multiple toggles per flyover
2017-11-27 16:32:52 +01:00
Eric Lippmann
47ca9bd32f
JS: Fix sidebar position
2017-11-27 15:12:15 +01:00
lippserd
8f1f8d4471
Merge pull request #3100 from Icinga/feature/expandable-content
...
Implement persistent "Show more" spoilers
2017-11-27 14:44:15 +01:00
Alexander A. Klimov
6409bdc074
Implement persistent "Show more" spoilers
2017-11-27 14:18:42 +01:00
Thomas Gelf
cc41fc25f3
js, layout: detect initial layout on load
...
fixes #3107
2017-11-27 13:45:43 +01:00
Eric Lippmann
459768ba4e
Fix JS issues with our new menu
2017-11-27 13:26:28 +01:00
Eric Lippmann
544e92ac4a
Fix issues w/ scrollbars in the menu
2017-11-27 13:26:23 +01:00
Eric Lippmann
4c32935c48
Increase header logo height
2017-11-21 23:04:12 +01:00
Florian Strohmaier
147587da90
Allow to collapse/expand the sidebar via a toggle button at the bottom of the sidebar
2017-11-21 23:04:12 +01:00
Eric Lippmann
807fbdb131
Reduce flyout menu JS complexity
2017-11-21 23:04:12 +01:00
Alexander A. Klimov
bc4b9fb4e0
Make flyover responsive
2017-11-21 18:11:05 +01:00
lippserd
df1e7683c8
Merge pull request #3041 from Icinga/feature/auto-detaching-dom-elements-3039
...
Implement auto-detaching DOM elements
2017-11-21 16:48:59 +01:00
Alexander A. Klimov
e9c189fa38
Close all flyovers on click outside a flyover
2017-11-21 16:37:52 +01:00
lippserd
7fd9f23f6c
Merge pull request #3116 from Icinga/fix/no-debug-rendering-while-disabled-3115
...
icinga/ui.js: don't spend time for UI debug...
2017-11-21 14:09:12 +01:00
Alexander A. Klimov
c7ffb41b02
Implement togglable flyover
...
refs #3024
2017-11-21 14:05:12 +01:00
Alexander A. Klimov
b000c1ae4a
Implement auto-detaching DOM elements
...
refs #3039
2017-11-21 13:17:55 +01:00
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
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