Commit 7de27188 authored by Tyler Hallada's avatar Tyler Hallada
Browse files

Rename grid open class to opened

The previous "open" class clashed with the "open" class that Bootstrap
dropdown used to signify an opened dropdown.
parent fb87ff9b
......@@ -38,7 +38,7 @@ div.container{
line-height:1;
}
.open{
.opened{
color:ForestGreen;
font-weight:bold;
font-size:200%;
......
function close(id) {
$('#grid #' + id).removeClass('open');
$('#grid #' + id).addClass('closed');
return false;
}
function open(id) {
$('#grid #' + id).removeClass('closed');
$('#grid #' + id).addClass('open');
return false;
}
function sort_restaurants(restaurants) {
var open = $.grep(restaurants,
function (r, idx) { return (r.open === true) });
......@@ -23,7 +11,7 @@ function construct_grid(restaurants) {
$.each(restaurants, function (idx, restaurant) {
var open_class = 'closed';
if (restaurant.open) {
open_class = 'open';
open_class = 'opened';
}
// Append the data into the Bootstrap scaffolding
if ($('#grid .row').last().children().length < 4) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment