Skip to content

Commit

Permalink
Revert "affix table header."
Browse files Browse the repository at this point in the history
This reverts commit 22d6862.
  • Loading branch information
mattwigway committed Jun 2, 2015
1 parent 2961d60 commit 30c0c2f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 deletions.
5 changes: 0 additions & 5 deletions public/client/application/application.css
Expand Up @@ -19,8 +19,3 @@ body {
transform: rotate(1turn);
}
}

.affix {
position: fixed;
top: 0px
}
@@ -1,4 +1,4 @@
<p data-spy="affix" data-offset-top="60" data-offset-bottomestyle="top: 20px; width: 100%;">
<p>
{{#if showNewFeedButton}}
<button type="button" class="btn btn-success newfeedsource">
<span class="glyphicon glyphicon-plus"></span> {{ t "app.add_feed_source" }}
Expand Down Expand Up @@ -36,7 +36,7 @@

<div class="table-responsive">
<table class="table table-striped table-hover table-condensed">
<thead style="background-color: #fff">
<thead>
<th><a href="#" class="sort-by" data-attr="name">{{ t 'app.feed_source.name' }}</a></th>
<th><a href="#" class="sort-by" data-attr="isPublic">{{ t 'app.feed_source.public' }}</a></th>
<th><a href="#" class="sort-by" data-attr="deployable">{{ t 'app.feed_source.deployable' }}</a></th>
Expand Down
Expand Up @@ -36,20 +36,6 @@ module.exports = CompositeView.extend({
.appendTo(this.$('a[data-attr="' + this.collection.sortAttribute + '"]').parent());
},

onShow: function () {
this.$('thead th').each(function () {
var th = $(this);
th.css('width', th.width() + 'px');
});

this.$('thead').css('width', this.$('thead').width() + 'px')
.affix({
offset: {
top: this.$('thead').offset().top
}
});
},

initialize: function(attr) {
this.feedCollectionId = attr.feedCollectionId;
_.bindAll(this, 'add', 'deployPublic', 'sortBy');
Expand Down

0 comments on commit 30c0c2f

Please sign in to comment.