Skip to content

Commit 7cda860

Browse files
committed
Fixed DADA-button not working when DADA was on cooldown
1 parent 61ec40c commit 7cda860

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

demo-media/dist/prod/js/DADA-init.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo-media/js/DADA-init.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ $(function() {
7474
}
7575
};
7676

77+
var doDada = function() {
78+
$("#enable-button").attr("disabled", "disabled");
79+
$.DADA(options);
80+
};
81+
7782
$(".dada-button").on("click", function() {
7883
$(this).parent(".dada-button-container").addClass("is-clicked");
7984
$("#enable-button").attr("disabled", "disabled");
@@ -115,9 +120,4 @@ $(function() {
115120

116121
$("#enable-button").on("change", doCountdown);
117122
doCountdown();
118-
119-
var doDada = function() {
120-
$("#enable-button").attr("disabled", "disabled");
121-
$.DADA(options);
122-
}
123123
})

0 commit comments

Comments
 (0)