mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
Доработка компонента details
This commit is contained in:
parent
372aed8b73
commit
1243fa5618
|
@ -494,7 +494,7 @@ $config['block']['rule_blog'] = array(
|
|||
*/
|
||||
$config['components'] = array(
|
||||
// Базовые компоненты
|
||||
'css-reset', 'css-helpers', 'typography', 'forms', 'grid', 'ls-vendor', 'ls-core', 'ls-component', 'lightbox', 'slider', 'accordion', 'alert', 'dropdown', 'button', 'block',
|
||||
'css-reset', 'css-helpers', 'typography', 'forms', 'grid', 'ls-vendor', 'ls-core', 'ls-component', 'lightbox', 'slider', 'details', 'alert', 'dropdown', 'button', 'block',
|
||||
'nav', 'tooltip', 'tabs', 'modal', 'table', 'text', 'uploader', 'email', 'field', 'comment', 'pagination', 'editor', 'more', 'crop',
|
||||
'perfomance', 'toolbar', 'media', 'actionbar', 'progressbar', 'badge', 'property', 'autocomplete', 'icon', 'item', 'highlighter', 'jumbotron',
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
active = $activeTag
|
||||
assign = tags}
|
||||
|
||||
{component 'accordion' classes='js-tags-favourite-accordion' items=[[
|
||||
'title' => "{lang 'favourite_tags.title'} {if $activeTag}({$activeTag}){/if}",
|
||||
'content' => $tags
|
||||
]]}
|
||||
{component 'details'
|
||||
classes = 'js-tags-favourite-cloud'
|
||||
title = "{lang 'favourite_tags.title'} {if $activeTag}({$activeTag}){/if}"
|
||||
content = $tags}
|
|
@ -4,7 +4,7 @@
|
|||
"dependencies": {
|
||||
"ls-component": "*",
|
||||
"user-list-add": "*",
|
||||
"accordion": "*",
|
||||
"details": "*",
|
||||
"search-form": "*",
|
||||
"article": "*",
|
||||
"comment": "*",
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
</form>
|
||||
{/capture}
|
||||
|
||||
{component 'accordion' classes='js-talk-search-form' items=[[
|
||||
'title' => {lang 'talk.search.title'},
|
||||
'content' => $smarty.capture.talk_search_form
|
||||
]]}
|
||||
{component 'details'
|
||||
classes = 'js-talk-search-form'
|
||||
title = {lang 'talk.search.title'}
|
||||
content = $smarty.capture.talk_search_form}
|
|
@ -50,11 +50,9 @@ jQuery(document).ready(function($){
|
|||
|
||||
|
||||
/**
|
||||
* Accordion
|
||||
* Details
|
||||
*/
|
||||
$('.js-accordion-default').lsAccordion({
|
||||
collapsible: true
|
||||
});
|
||||
$('.js-details-default').lsDetails();
|
||||
|
||||
|
||||
/**
|
||||
|
@ -313,10 +311,7 @@ jQuery(document).ready(function($){
|
|||
ls.talk.init();
|
||||
|
||||
// Форма поиска
|
||||
$('.js-talk-search-form').accordion({
|
||||
collapsible: true,
|
||||
active: false
|
||||
});
|
||||
$('.js-talk-search-form').lsDetails();
|
||||
|
||||
// Добавление диалога в избранное
|
||||
$('.js-favourite-talk').lsFavourite({
|
||||
|
@ -490,10 +485,7 @@ jQuery(document).ready(function($){
|
|||
ls.tags.init();
|
||||
|
||||
// Облако тегов избранного
|
||||
$('.js-tags-favourite-accordion').accordion({
|
||||
collapsible: true,
|
||||
active: false
|
||||
});
|
||||
$('.js-tags-favourite-cloud').lsDetails();
|
||||
|
||||
// Поиск по тегам
|
||||
$('.js-tag-search-form').submit(function() {
|
||||
|
|
Loading…
Reference in a new issue