@@ -246,6 +221,12 @@
controller.addResponse();
});
+ $('#responseTabTitle').on('click', 'button', function () {
+ if ($(this).hasClass('btn_add_case')) {
+ controller.addResponse();
+ }
+ });
+
$('#responseTabContent').on('click', 'button', function () {
if ($(this).hasClass('btn_remove_case')) {
controller.removeResponse($(this).attr("data-id"));
@@ -410,10 +391,19 @@
$('#responseTabContent').append(nodeCopy);
}
- console.log('#responseTabTitle li:eq(' + view.currentIdx + ') a');
- console.log("render: " + view.currentIdx);
+
+ let tabButton = $('