Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-25 02:30:28 +01:00
Ensure invalid checkbox is animated
Dieser Commit ist enthalten in:
Ursprung
ce1cbd5e8c
Commit
94910e25f0
2 geänderte Dateien mit 11 neuen und 0 gelöschten Zeilen
|
@ -41,6 +41,12 @@ export default {
|
||||||
WizardStep.reopen({
|
WizardStep.reopen({
|
||||||
classNameBindings: ['step.id'],
|
classNameBindings: ['step.id'],
|
||||||
|
|
||||||
|
animateInvalidFields() {
|
||||||
|
Ember.run.scheduleOnce('afterRender', () => {
|
||||||
|
$('.invalid input[type=text], .invalid textarea, .invalid input[type=checkbox]').wiggle(2, 100);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
ensureStartsAtTop: function() {
|
ensureStartsAtTop: function() {
|
||||||
window.scrollTo(0,0);
|
window.scrollTo(0,0);
|
||||||
}.observes('step.id'),
|
}.observes('step.id'),
|
||||||
|
|
|
@ -408,6 +408,11 @@ img.avatar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.checkbox-field.invalid .input-area {
|
||||||
|
padding: 3px;
|
||||||
|
border: 4px solid red;
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes rotate-forever {
|
@keyframes rotate-forever {
|
||||||
0% {
|
0% {
|
||||||
transform: rotate(0deg);
|
transform: rotate(0deg);
|
||||||
|
|
Laden …
In neuem Issue referenzieren