mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
fix filtering multiple sources on single page, plus add filtering for doc table
This commit is contained in:
parent
4745faae7b
commit
d2cd9fe419
@ -8,7 +8,7 @@ $(document).ready(function () {
|
||||
|
||||
$('#js-content-name-filter').keyup(function (e) {
|
||||
var search_query = $(this).val();
|
||||
var content_list = $('.js-content-cards-list > .js-content-card-container');
|
||||
var content_list = $('.js-content-card-container');
|
||||
|
||||
// Show everything, then hide what doesn't match
|
||||
content_list.hide();
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<%# Usage: render partial: 'content/list/document_table', locals: { content_list: @content, content_type: @content_type_class } %>
|
||||
|
||||
<table class="highlight z-depth-1">
|
||||
<table class="highlight z-depth-1 js-content-cards-list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
@ -9,7 +9,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<% content_list.each do |document| %>
|
||||
<tr class="white">
|
||||
<tr class="white js-content-card-container">
|
||||
<td>
|
||||
<div>
|
||||
<i class="material-icons left <%= Document.color %>-text"><%= Document.icon %></i>
|
||||
@ -34,7 +34,9 @@
|
||||
<% end %>
|
||||
|
||||
|
||||
<strong style="font-size: 1.2em"><%= document.title %></strong>
|
||||
<strong style="font-size: 1.2em" class="js-content-name">
|
||||
<%= document.title %>
|
||||
</strong>
|
||||
</div>
|
||||
<div style="padding-left: 2.6em">
|
||||
<% if current_user.can_read?(document) %>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user