Skip to content
Snippets Groups Projects
Commit ca1d9ca0 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #46257 improve items table toggle effect

parent 28fa56ad
2 merge requests!1825Dev#46257 contractuel bdp yonne finalisation affichage exemplaire,!1821Dev#46257 contractuel bdp yonne finalisation affichage exemplaire
......@@ -80,8 +80,8 @@ class ZendAfi_View_Helper_Notice_Exemplaires extends ZendAfi_View_Helper_BaseHel
return $html .
($other_items
? $this->_decoratedItemsTable($this->_('Où le trouver dans les autres bibliothèques'),
$this->_itemsTable($other_items, $renderers, ['style' => 'display: none']),
['onclick' => '$(this).closest(\'div\').find(\'table\').toggle();'])
$this->_tag('div', $this->_itemsTable($other_items, $renderers), ['class' => 'bookmarked_items_by_libraries']),
['onclick' => '$(this).next().toggleClass(\'opened_items\');'])
: '');
}
......
......@@ -3386,4 +3386,15 @@ th.actions {
padding: 5px;
background: none;
border: none;
}
.bookmarked_items_by_libraries {
max-height: 0;
overflow: hidden;
transition: all ease 0.5s;
}
.bookmarked_items_by_libraries.opened_items {
max-height: 500px;
overflow-y: auto;
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment