Skip to content

Commit

Permalink
Linked filters fix
Browse files Browse the repository at this point in the history
  • Loading branch information
licoffe committed Jun 22, 2017
1 parent 8edeee0 commit a8e2dfb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ $( document).ready( function() {
$( "#filters-amount" ).text( $( "#filters .collection-item:visible" ).length );
};

// When clicking on 'Cancel editing'
// When clicking on 'Clear Filter'
var cancelEditAction = function() {
$( "#league" ).val( config.leagues[config.defaultLeagueIndex]);
$( "#league").material_select();
Expand Down Expand Up @@ -200,10 +200,12 @@ $( document).ready( function() {
$( "#item-type" ).val( "any" );
$( "#item-type").material_select();

// If we are editing and the button is 'Clear Filter'
if ( $( this ).text() !== "Clear filter" ) {
$( "#add-filter" ).text( "Add filter" );
$( "#cancel-filter" ).text( "Clear filter" );
$( "#cancel-filter" ).removeClass( "red" ).addClass( "blue-grey" );
editingFilter = "";
}
};

Expand Down Expand Up @@ -1140,4 +1142,8 @@ $( document).ready( function() {
}
}, config.NOTIFICATION_QUEUE_INTERVAL );

// setInterval( function() {
// console.log( "editingFilter: " + editingFilter );
// }, 1000 );

});
2 changes: 1 addition & 1 deletion templates/entry.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<li class="collection-item entry" id="{{id}}" style="display: none">
<div class="title row" style="">
<span class="timestamp col s1">{{time}}</span>
<span class="item col s4">{{item}} <span class="typeLine">{{typeLine}}</span></span>
<span class="item col s4">{{item}} <span class="typeLine">{{type}}</span></span>
<span class="account col s3">{{account}}</span>
<span class="currency col s1">{{originalPrice}}</span>
<span class="col s2"></span>
Expand Down

0 comments on commit a8e2dfb

Please sign in to comment.