Skip to content

Commit

Permalink
fine, Capibara, you win
Browse files Browse the repository at this point in the history
  • Loading branch information
Oaphi committed Oct 27, 2024
1 parent 114b30f commit c55d958
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/categories.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $(() => {
$caption.find('[data-state="absent"]').hide();
$caption.find('[data-state="present"]').show();

$el.find('.js-tag-select').attr('data-tag-set', tagSetId.toString()).attr('disabled', 'false');
$el.find('.js-tag-select').attr('data-tag-set', tagSetId.toString()).attr('disabled', false);
});
}
else {
Expand All @@ -20,7 +20,7 @@ $(() => {
$caption.find('[data-state="absent"]').show();
$caption.find('[data-state="present"]').hide();

$el.find('.js-tag-select').attr('data-tag-set', null).attr('disabled', 'true');
$el.find('.js-tag-select').attr('data-tag-set', null).attr('disabled', true);
});
}
});
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ $(() => {
}

setTimeout(() => {
$tgt.find('input[type="submit"]').attr('disabled', 'false');
$tgt.find('input[type="submit"]').attr('disabled', false);
}, 1000);
}
});
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/users.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$(() => {
if ((location.pathname === '/users/sign_up' || location.pathname === '/users/sign_in') && !navigator.cookieEnabled) {
$('input[type="submit"]').attr('disabled', 'true').addClass('is-muted is-outlined');
$('input[type="submit"]').attr('disabled', true).addClass('is-muted is-outlined');
$('.js-errors').text('Cookies must be enabled in your browser for you to be able to sign up or sign in.');
}

Expand Down

0 comments on commit c55d958

Please sign in to comment.