Skip to content

Commit

Permalink
fixed sonar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zubairraeen committed Jan 2, 2024
1 parent d3b8b2f commit 13b54b1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/qsm-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2740,8 +2740,8 @@ var import_button;
});
// removes question from database
$(document).on('click', '.qsm-delete-question-button-btn', function () {
var question_id = $(this).attr('data-question-iid');
var checkedValues = "";
let question_id = $(this).attr('data-question-iid');
let checkedValues = "";
if ("selected-questions" == question_id || "all-questions" == question_id) {
if ("all-questions" == question_id) {
checkedValues = $('.qsm-admin-select-question-input')
Expand All @@ -2756,7 +2756,7 @@ var import_button;
})
.get();
}
var question_ids = checkedValues.join(',');
let question_ids = checkedValues.join(',');
if (question_ids == undefined || question_ids == null || question_ids == '') {
return;
}
Expand Down Expand Up @@ -2862,8 +2862,8 @@ var import_button;
// unlink question from a particular quiz.
$(document).on('click', '.qsm-unlink-question-button-btn', function (event) {
event.preventDefault();
var question_id = $(this).attr('data-question-iid');
var checkedValues = "";
let question_id = $(this).attr('data-question-iid');
let checkedValues = "";
if ("selected-questions" == question_id || "all-questions" == question_id) {
if ("all-questions" == question_id) {
checkedValues = $('.qsm-admin-select-question-input')
Expand Down

0 comments on commit 13b54b1

Please sign in to comment.