LukeMurphey / splunk-dashboard-tabs-example

An example of the use of tabs on a Splunk dashboard. #splunk
MIT License
21 stars 11 forks source link

fix: updated jQuery selector to work with jQuery v3.5 #8

Closed adamcoolcat closed 1 year ago

adamcoolcat commented 1 year ago

Splunk is moving from jQuery v2.1 to v3.5 in new releases.

The new jQuery v3.5 does not support $('#'), as it did in v2.1. The new regex characterEncoding is different in v3.5.

To fix this, the jQuery selector for targets[d] and toToggle[c] was updated to use a native .js DOM Element.

The tabs.js should now work in jQuery version 2.1 and 3.5 (Splunk xml version="1.0" and version="1.1")

edit: also updated the tabs.js to remove all references to bootstrap, as it is a deprecated feature in jQuery 3.5