48 Commits

Author SHA1 Message Date
Johannes Meyer
762663a3f6 utils.js: Use jQuery to check id uniqueness 2022-02-24 16:38:10 +01:00
Johannes Meyer
fe6be6a107 js: Only use ids in Utils.getCSSPath() if they're truly unique 2022-02-04 17:22:16 +01:00
Johannes Meyer
1675cc6d74 js: Make Utils.getCSSPath work without a jQuery set 2021-03-30 09:31:57 +02:00
Johannes Meyer
a59977f181 js: Properly parse/build url query values
fixes #4167
2020-06-05 08:57:30 +02:00
Johannes Meyer
5a031bf659 utils.js: Fix method removeUrlParams() 2020-01-28 15:23:41 +01:00
Johannes Meyer
8bc84a5f9e js: Teach the url parsing a final lesson about query strings
`utils.parseParams()` now returns an array instead of an object.
This may require some changes in modules using this directly or
by `utils.parseUrl().params`

refs #4056
2020-01-16 13:45:10 +01:00
Johannes Meyer
4c39772667
Merge pull request #4053 from Icinga/feature/js-addUrlFlag
JS: Introduce Icinga.Utils.addUrlFlag()
2020-01-16 08:14:20 +01:00
Johannes Meyer
477649900c js: Also adjust utils.removeUrlParams()..
..and properly handle flags in `utils.addUrlParams()`

refs #4056
2020-01-16 08:13:11 +01:00
Johannes Meyer
fdd14c96b1 js: Only encode new params in utils.addUrlParams() 2020-01-15 16:47:30 +01:00
Johannes Meyer
3db65d79c6 js: Fix improper parsing in utils.parseParams() 2020-01-15 16:46:46 +01:00
Johannes Meyer
e45c18c833 utils.js: Use a regex to identify the uri fragment 2020-01-15 07:58:49 +01:00
Eric Lippmann
4d02d8f6d6 JS: Introduce Icinga.Utils.addUrlFlag() 2020-01-14 14:58:34 +01:00
Johannes Meyer
47c2a8bdc1 js: Utilize utils.objectsEqual() in actiontable.select() 2019-11-20 16:22:56 +01:00
Johannes Meyer
2dbf9ca8ab js: Properly parse/decode query params in utils.parseParams() 2019-11-20 16:22:56 +01:00
Johannes Meyer
50f5aa0ac3 Revert "utils.js: Utilize ids of forms and elements in getCssPath"
This reverts commit c835f02953e13519f8326817dd326c5565154995.
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
2a5a403573 utils.js: Add new method objectsEqual() 2019-01-10 15:30:05 +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
Alexander A. Klimov
c4a69191a3 JS: implement Icinga.Utils.padString()
refs #10625
2016-02-22 11:14:41 +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
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
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
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
Matthias Jentsch
a7a93803ee Cleanup and conform to coding guidelines 2015-08-25 16:58:14 +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
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
Thomas Gelf
d10beb7604 js: no console.log. please! 2015-02-09 15:26:55 +01:00
Matthias Jentsch
b56eb7b669 Fix keyboard navigation
Store current focus position before reload and apply it after rendering.

fixes #8350
2015-02-04 18:01:06 +01:00
Eric Lippmann
6bae2e0a53 Note that our license is GPL v2 or any later version in our license header instead of pointing to the license's URL 2015-02-04 10:52:27 +01:00
Eric Lippmann
5b4fab0750 Add license header
This time without syntax errors hopefully :)
2015-02-03 16:27:59 +01:00
Eric Lippmann
5fa2e3cfdc Revert "Add license header"
This reverts commit 338d067aba41dd6e9178cebec5433eecd614196e.
2015-02-03 16:16:26 +01:00
Eric Lippmann
338d067aba Add license header
fixes #7788
2015-02-03 15:51:04 +01:00
Matthias Jentsch
28f5ef2284 Fix elementsOverlap function for SVG elements
Access SVG getBBox function to acquire the bounding box for SVG elements
2014-09-08 16:37:20 +02:00
Matthias Jentsch
b10b1ea034 Add jQuery tooltips 2014-09-03 15:53:56 +02:00
Johannes Meyer
3105c2059e Remove license headers from all files
refs #6309
2014-07-15 13:43:52 +02:00
Matthias Jentsch
be0c5d4b23 Add more meaningful tooltip labels to InlinePies
Show current title, a well-formated value and a label for each area in a
tooltip and add the ability to customize tooltip labels of InlinePies

refs #6117
2014-06-18 14:43:14 +02:00
Thomas Gelf
6d321d67cd JS/CSS: Get IE8 working
Just a bunch of JS and CSS improvements / fixes

refs #6417
2014-06-05 15:03:59 +00:00
Matthias Jentsch
6d303f1c42 Add abillity for multi and range-selection to events.js
Add the abillity to select multiple rows, with a multi-selection using the
CTRL-key or a range-selection using the shift-key. Also fix several issues in
the Multi-Controller of the Backend.

refs #5765
2014-04-28 09:48:05 +02:00
Johannes Meyer
80b4e3bf33 Add infinite scrolling to the timeline
refs #4190
2014-04-01 11:46:44 +02:00
Thomas Gelf
9b79a8280f Blacklist special params in history and do not trigger change on page load 2014-03-31 16:24:29 +00:00
Thomas Gelf
e28f7a05eb Pass jQuery object to icinga/utils.js 2014-03-26 09:25:01 +00:00
Thomas Gelf
b54326bf5d Improve form submission, make use of serializeObject 2014-03-26 07:48:22 +00:00
Thomas Gelf
e36fb2558e Add JS helper extending url params 2014-03-25 12:11:39 +00:00
Alexander Klimov
b410ebeed6 Remove unnecessary spaces at end of line 2014-03-06 13:08:11 +01:00
Thomas Gelf
9a485df81a Lot's of JS changes 2014-03-04 13:08:29 +00:00
Thomas Gelf
ed2b330843 A few JS files where missing 2014-02-21 14:03:49 +00:00