-
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35047 from dimagi/em/repeat-record-report-bulk-ac…
…tions-bugfix Fix Bulk Actions on Repeat Records Report
- Loading branch information
Showing
15 changed files
with
409 additions
and
451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 16 additions & 15 deletions
31
...bapp/tests/data/bootstrap5_diffs/javascript/repeaters/js/repeat_record_report.js.diff.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,37 @@ | ||
--- | ||
+++ | ||
@@ -1,5 +1,5 @@ | ||
@@ -1,6 +1,6 @@ | ||
/* globals ace */ | ||
'use strict'; | ||
-hqDefine('repeaters/js/bootstrap3/repeat_record_report', function () { | ||
+hqDefine('repeaters/js/bootstrap5/repeat_record_report', function () { | ||
var initialPageData = hqImport("hqwebapp/js/initial_page_data"), | ||
const initialPageData = hqImport("hqwebapp/js/initial_page_data"), | ||
selectAll = document.getElementById('select-all'), | ||
cancelAll = document.getElementById('cancel-all'), | ||
@@ -138,7 +138,7 @@ | ||
$('#confirm-button').on('click', function () { | ||
var itemsToSend = getCheckboxes(), action = getAction(), $btn; | ||
selectPending = document.getElementById('select-pending'), | ||
@@ -142,7 +142,7 @@ | ||
action = getAction(); | ||
let $btn; | ||
|
||
- $popUp.modal('hide'); | ||
+ $popUp.modal('hide'); /* todo B5: plugin:modal */ | ||
if (action == 'resend') { | ||
if (action === 'resend') { | ||
$btn = $('#resend-all-button'); | ||
$btn.disableButton(); | ||
@@ -159,7 +159,7 @@ | ||
if (isActionPossibleForCheckedItems(action)) { | ||
$('#warning').addClass('hide'); | ||
$('#not-allowed').addClass('hide'); | ||
@@ -167,7 +167,7 @@ | ||
// leaving as is to preserve behavior | ||
if (isActionPossibleForCheckedItems(action, checkedRecords)) { | ||
hideAllWarnings(); | ||
- $popUp.modal('show'); | ||
+ $popUp.modal('show'); /* todo B5: plugin:modal */ | ||
} else { | ||
$('#warning').addClass('hide'); | ||
$('#not-allowed').removeClass('hide'); | ||
@@ -244,7 +244,7 @@ | ||
showWarning('not-allowed'); | ||
} | ||
@@ -240,7 +240,7 @@ | ||
} else { | ||
btn.text(gettext('Failed')); | ||
btn.addClass('btn-danger'); | ||
- $('#payload-error-modal').modal('show'); | ||
+ $('#payload-error-modal').modal('show'); /* todo B5: plugin:modal */ | ||
$('#payload-error-modal .error-message').text(data.failure_reason); | ||
$('#payload-error-modal .error-message').text(response.failure_reason); | ||
} | ||
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.