Skip to content

Commit 6fdb65d

Browse files
authored
fix(core): toggle action (#1538)
1 parent 27f1eef commit 6fdb65d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/javascript/core/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ $(function () {
110110
$('[data-action="toggle"]').click(function (e) {
111111
e.preventDefault()
112112
const target = $(this).attr("data-target")
113-
return $.find(target).toggleClass("hidden")
113+
return $(target).toggleClass("hidden")
114114
})
115115

116116
// init universal search input field
@@ -254,7 +254,7 @@ $(document).on("modal:contentUpdated", function (e) {
254254
return $('[data-action="toggle"]').click(function (e) {
255255
e.preventDefault()
256256
const target = $(this).attr("data-target")
257-
return $.find(target).toggleClass("hidden")
257+
return $(target).toggleClass("hidden")
258258
})
259259
})
260260

0 commit comments

Comments
 (0)