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