From 2598f90817a0a6b1643d1a4ce5afe68785f62f23 Mon Sep 17 00:00:00 2001 From: Ruben Ramirez Date: Fri, 4 Apr 2025 12:06:39 -0500 Subject: [PATCH] Updated Assessment builder debugging --- js/quiztech-assessment-builder.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/quiztech-assessment-builder.js b/js/quiztech-assessment-builder.js index fd27865..9013d62 100644 --- a/js/quiztech-assessment-builder.js +++ b/js/quiztech-assessment-builder.js @@ -356,10 +356,11 @@ jQuery(document).ready(function($) { // Remove placeholder if it exists $currentList.find('p').remove(); - // Update state and UI (The 'update' event below will handle state and cost) - // updateStateFromDOM(); // Let the 'update' event handle this - // updateTotalCost(); // Let the 'update' event handle this + // Update state and UI updateLibraryButtons(); // Disable the 'Add' button in the library immediately + // Explicitly update state and cost *after* DOM manipulation in receive + updateStateFromDOM(); + updateTotalCost(); } }).disableSelection(); // Prevent text selection while dragging