Implement Web Assets' theme system and selection, and add 'light' theme #118
@ -49,7 +49,7 @@
|
||||
let value = e.target.value;
|
||||
let verb = 'Comment';
|
||||
const activitySubmitButton = document.getElementById('activity-submit');
|
||||
activitySubmitButton.classList.remove('btn-success', 'btn-warning');
|
||||
activitySubmitButton.classList.remove('btn-primary', 'btn-success', 'btn-warning');
|
||||
|
||||
// Hide or show comment form msg on change
|
||||
if (value == 'AWC') {
|
||||
@ -60,6 +60,8 @@
|
||||
} else if (value == 'APR') {
|
||||
verb = 'Approve!';
|
||||
activitySubmitButton.classList.add('btn-success');
|
||||
} else {
|
||||
activitySubmitButton.classList.add('btn-primary');
|
||||
}
|
||||
|
||||
activitySubmitButton.querySelector('span').textContent = verb;
|
||||
|
Loading…
Reference in New Issue
Block a user