minor code formatting tweaks

pull/9152/head
Niklas Fiekas 2021-06-10 19:55:30 +02:00
parent b77f770d46
commit 2cfbcbfe82
2 changed files with 9 additions and 2 deletions

View File

@ -28,7 +28,12 @@ object edit extends Context.ToLang {
if (ctx.is(s.user))
div(cls := "streamer-header")(
if (s.streamer.hasPicture)
a(targetBlank, cls := "picture-edit", href := routes.Streamer.picture, title := changePicture.txt())(
a(
targetBlank,
cls := "picture-edit",
href := routes.Streamer.picture,
title := changePicture.txt()
)(
bits.pic(s.streamer, s.user)
)
else

View File

@ -102,7 +102,9 @@ export default function (element: HTMLElement, ctrl: AnalyseCtrl) {
.filter('.' + panel)
.addClass('active');
if ((panel == 'move-times' || ctrl.opts.hunter) && !lichess.movetimeChart)
lichess.loadScript('javascripts/chart/movetime.js').then(() => lichess.movetimeChart(data, ctrl.trans, ctrl.opts.hunter));
lichess
.loadScript('javascripts/chart/movetime.js')
.then(() => lichess.movetimeChart(data, ctrl.trans, ctrl.opts.hunter));
if ((panel == 'computer-analysis' || ctrl.opts.hunter) && $('#acpl-chart').length)
setTimeout(startAdvantageChart, 200);
};