From b6b9e30e3947aff573973e7896a69b7282f1d124 Mon Sep 17 00:00:00 2001 From: CodeKevin Date: Sun, 7 Feb 2016 03:15:41 -0500 Subject: [PATCH] Fixing mobile challenge view --- CTFd/static/js/chalboard.js | 11 +++++++++-- CTFd/templates/chals.html | 1 - 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CTFd/static/js/chalboard.js b/CTFd/static/js/chalboard.js index 3819d80..35494fd 100644 --- a/CTFd/static/js/chalboard.js +++ b/CTFd/static/js/chalboard.js @@ -189,7 +189,14 @@ function loadchals() { categories.push(category); var categoryid = category.replace(/ /g,"-").hashCode(); - var categoryrow = $('
'.format(categoryid)); + var categoryrow = $('' + + '
'.format(categoryid) + + '
' + + '
' + + '
' + + '
' + + '
' + + '
'); categoryrow.find(".category-header").append($("

"+ category +"

")); $('#challenges-board').append(categoryrow); @@ -209,7 +216,7 @@ function loadchals() { chalbutton.append(chalscore); chalwrap.append(chalbutton); - $("#"+ catid +"-row").find(".category-challenges > .row").append(chalwrap); + $("#"+ catid +"-row").find(".category-challenges > .chal-row").append(chalwrap); }; updatesolves(); diff --git a/CTFd/templates/chals.html b/CTFd/templates/chals.html index b3aa266..8d84c06 100644 --- a/CTFd/templates/chals.html +++ b/CTFd/templates/chals.html @@ -1,7 +1,6 @@ {% extends "base.html" %} {% block stylesheets %} -