mirror of
https://github.com/flarum/core.git
synced 2025-08-07 08:56:38 +02:00
Add some more debugging flags
This commit is contained in:
committed by
Franz Liedke
parent
beab8ce39c
commit
c150c097c1
@@ -281,6 +281,7 @@ export default class PostStream extends Component {
|
||||
* @return {jQuery.Deferred}
|
||||
*/
|
||||
scrollToNumber(number, noAnimation) {
|
||||
console.log('scrollToNumber');
|
||||
const $item = this.$(`.PostStream-item[data-number=${number}]`);
|
||||
|
||||
return this.scrollToItem($item, noAnimation).done(this.flashItem.bind(this, $item));
|
||||
@@ -296,6 +297,7 @@ export default class PostStream extends Component {
|
||||
* @return {jQuery.Deferred}
|
||||
*/
|
||||
scrollToIndex(index, noAnimation, bottom) {
|
||||
console.log('scrollToIndex');
|
||||
const $item = this.$(`.PostStream-item[data-index=${index}]`);
|
||||
|
||||
return this.scrollToItem($item, noAnimation, true, bottom);
|
||||
@@ -313,6 +315,7 @@ export default class PostStream extends Component {
|
||||
* @return {jQuery.Deferred}
|
||||
*/
|
||||
scrollToItem($item, noAnimation, force, bottom) {
|
||||
console.log('scrollToItem');
|
||||
const $container = $('html, body').stop(true);
|
||||
|
||||
if ($item.length) {
|
||||
|
Reference in New Issue
Block a user