Skip to content

Commit

Permalink
Tidy javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
ushkarev committed Jun 3, 2024
1 parent 1deda99 commit 4a0fe4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mtp_cashbook/assets-src/components/cashbook/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export var Cashbook = {
};

function displayCreditSelectionCount (itemCount, $countContainer) {
if(typeof django === 'undefined') {
if (typeof django === 'undefined') {
// if django js library hasn't loaded yet, fall back to simple message
$countContainer.text(
'Credits selected for processing in NOMIS: ' + itemCount
Expand Down
4 changes: 2 additions & 2 deletions mtp_cashbook/assets-src/components/disbursements/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export var Disbursements = {
$('.mtp-accounts-table tfoot a').click(function (e) {
e.preventDefault();

if(typeof django === 'undefined') {
if (typeof django === 'undefined') {
// if django js library hasn't loaded yet, fall back to no translation
window.django = {
gettext: function(text) {
gettext: function (text) {
return text;
}
};
Expand Down

0 comments on commit 4a0fe4b

Please sign in to comment.