Fixed missing auto-scroll when refreshing statistics chart
authorMarcel Werk <burntime@woltlab.com>
Thu, 5 Jan 2017 15:49:25 +0000 (16:49 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 5 Jan 2017 15:49:33 +0000 (16:49 +0100)
wcfsetup/install/files/acp/js/WCF.ACP.js

index 64bb1ff5836d1ee1c979c1b8943abee704a6bd51..dfa127417e20283f41ea6f9fd1a58a100fdfef1b 100644 (file)
@@ -2507,6 +2507,8 @@ WCF.ACP.Stat.Chart = Class.extend({
                if (!$data.length) {
                        $('#chart').append('<p style="position: absolute; font-size: 1.2rem; text-align: center; top: 50%; margin-top: -20px; width: 100%">' + WCF.Language.get('wcf.acp.stat.noData') + '</p>');
                }
+               
+               elBySel('.contentHeader > .contentTitle').scrollIntoView({ behavior: 'smooth' });
        }
 });