Add Prevent JQuery Firing Twice.js

This commit is contained in:
ben 2024-07-14 10:21:25 +00:00
parent 5e57dabcf4
commit 99932ea63a
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
$(".toggle_action_items").unbind().on('click', 'a', function (e) {
e.preventDefault();
var proj_num = ($(this).attr('id')).split("-")[1].split("_")[1];
var id = "#action_items_list-projnum_" + proj_num;
$(id).slideToggle(100, function () { });
});