Permalink
Browse files

Nicer pages UI

  • Loading branch information...
1 parent e0ba35c commit 0bf49b98c5804db09833a91b2f21dd02c1e3616b @fakedarren committed Apr 13, 2013
Showing with 6 additions and 7 deletions.
  1. +1 −2 public/backend/js/app/views/SectionList.js
  2. +5 −5 views/backend/content/pages.jade
@@ -24,9 +24,8 @@ define([
template = Handlebars.compile(source),
html = template(this.collection.toJSON());
- console.log(this.collection.toJSON());
-
this.$el.html(html);
+ this.$el.find('.nav-tabs a').eq(0).click();
},
create: function(evt){
@@ -31,14 +31,14 @@ block templates
ul.nav.nav-tabs
{{#each this}}
li
- a(href="#section-{{this._id}}", data-toggle="tab") {{this.title}}
+ a(href="#section-{{this._id}}", data-toggle="tab") {{this.title}}
{{/each}}
div.tab-content
{{#each this}}
- div.tab-pane.active(id="section-\{{this._id}}")
+ div.tab-pane(id="section-\{{this._id}}")
ul
- {{#each pages}}
- li {{this.title}}
- {{/each}}
+ {{#each pages}}
+ li {{this.title}}
+ {{/each}}
{{/each}}

0 comments on commit 0bf49b9

Please sign in to comment.