From 99932ea63ae5c752aa894c003010583fa797d669 Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 14 Jul 2024 10:21:25 +0000 Subject: [PATCH] Add Prevent JQuery Firing Twice.js --- Prevent JQuery Firing Twice.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Prevent JQuery Firing Twice.js diff --git a/Prevent JQuery Firing Twice.js b/Prevent JQuery Firing Twice.js new file mode 100644 index 0000000..693136d --- /dev/null +++ b/Prevent JQuery Firing Twice.js @@ -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 () { }); +}); \ No newline at end of file