1
0
mirror of https://github.com/flarum/core.git synced 2025-08-12 03:14:33 +02:00

Revert changes that have been separated out into https://github.com/flarum/core/pull/2262/files

This commit is contained in:
Alexander Skvortsov
2020-08-15 18:44:45 -04:00
committed by Franz Liedke
parent 389bc59745
commit 63984b43f9
5 changed files with 10 additions and 17 deletions

View File

@@ -99,6 +99,8 @@ export default class Modal extends Component {
this.$('form').find('input, select, textarea').first().focus().select();
}
onhide() {}
/**
* Hide the modal.
*/

View File

@@ -82,7 +82,7 @@ export default class Composer extends Component {
});
// When the escape key is pressed on any inputs, close the composer.
this.$().on('keydown', ':input', 'esc', () => this.state.close());
this.$().on('keydown', ':input', 'esc', () => this.close());
const handlers = {};

View File

@@ -26,6 +26,11 @@ export default class PostStream extends Component {
}
view() {
function fadeIn(element, isInitialized, context) {
if (!context.fadedIn) $(element).hide().fadeIn();
context.fadedIn = true;
}
let lastTime;
const viewingEnd = this.stream.viewingEnd();
@@ -42,6 +47,7 @@ export default class PostStream extends Component {
content = PostComponent ? PostComponent.component({ post }) : '';
attrs.key = 'post' + post.id();
attrs.config = fadeIn;
attrs['data-time'] = time.toISOString();
attrs['data-number'] = post.number();
attrs['data-id'] = post.id();

View File

@@ -177,7 +177,7 @@ export default class SignUpModal extends Modal {
* Get the data that should be submitted in the sign-up request.
*
* @return {Object}
* @protected
* @public
*/
submitData() {
const data = {

View File

@@ -104,18 +104,3 @@
.animation(pulsate 0.2s ease-in-out);
.animation-iteration-count(1);
}
@keyframes fadeIn {
0% {opacity:0;}
100% {opacity:1;}
}
@-webkit-keyframes fadeIn {
0% {opacity:0;}
100% {opacity:1;}
}
@-o-keyframes fadeIn {
0% {opacity:0;}
100% {opacity:1;}
}