Cleaning up bonfire.js
This commit is contained in:
@ -73,7 +73,8 @@ exports.returnIndividualBonfire = function(req, res, next) {
|
||||
if (err) {
|
||||
next(err);
|
||||
}
|
||||
var dashedNameFull = bonfire[bonfireNumber].name.toLowerCase().replace(/\s/g, '-');
|
||||
bonfire = bonfire.pop()
|
||||
var dashedNameFull = bonfire.name.toLowerCase().replace(/\s/g, '-');
|
||||
if (dashedNameFull != dashedName) {
|
||||
return res.redirect('/bonfires/' + dashedNameFull);
|
||||
}
|
||||
@ -83,7 +84,6 @@ exports.returnIndividualBonfire = function(req, res, next) {
|
||||
});
|
||||
return res.redirect('/bonfires')
|
||||
} else {
|
||||
bonfire = bonfire.pop();
|
||||
res.render('bonfire/show', {
|
||||
completedWith: null,
|
||||
title: bonfire.name,
|
||||
|
@ -656,11 +656,13 @@ iframe.iphone {
|
||||
position: absolute;
|
||||
top: 70px;
|
||||
right: 25px;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
@media(max-width: 991px) {
|
||||
width: 100%;
|
||||
border-radius: 5px;
|
||||
|
||||
overflow-y: visible;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user