Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christopher M Reffett
whats-open
Commits
3a944df6
Commit
3a944df6
authored
Sep 09, 2013
by
Renfred Harper
Browse files
Remove 4 restaurant per row conditional
parent
bb565eb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/static/js/grid.js
View file @
3a944df6
...
...
@@ -24,16 +24,9 @@ function construct_grid(filtered_restaurants) {
open_class
=
'
opened
'
;
}
// Append the data into the Bootstrap scaffolding
if
(
$
(
'
#grid .row
'
).
last
().
children
().
length
<
4
)
{
$
(
'
#grid .row
'
).
last
().
append
(
'
<div class="col-sm-4 col-md-3
'
+
open_class
+
'
" id="
'
+
restaurant
.
id
+
'
">
'
+
restaurant
.
name
+
'
</div>
'
);
}
else
{
$
(
'
#grid
'
).
append
(
'
<div class="row"></div>
'
);
$
(
'
#grid .row
'
).
last
().
append
(
'
<div class="col-sm-4 col-md-3
'
+
open_class
+
'
" id="
'
+
restaurant
.
id
+
'
">
'
+
restaurant
.
name
+
'
</div>
'
);
}
$
(
'
#grid .row
'
).
last
().
append
(
'
<div class="col-sm-4 col-md-3
'
+
open_class
+
'
" id="
'
+
restaurant
.
id
+
'
">
'
+
restaurant
.
name
+
'
</div>
'
);
});
$
(
'
#footer
'
).
show
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment