mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-05 07:54:24 +03:00
Кнопка обновления прямого эфира
This commit is contained in:
parent
e61fe859df
commit
79a1c28d6c
|
@ -36,6 +36,14 @@
|
|||
e.stopPropagation();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// Update stream
|
||||
$('#stream-update').click(function(){
|
||||
$(this).addClass('active');
|
||||
ls.blocks.load($('#block_stream_item_comment'), 'block_stream');
|
||||
setTimeout( function() { $('#stream-update').removeClass('active'); }, 600 );
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
@ -43,6 +51,7 @@
|
|||
<section class="block block-type-stream" id="block_stream">
|
||||
<header class="block-header">
|
||||
<h3><a href="{router page='comments'}" title="{$aLang.block_stream_comments_all}">{$aLang.block_stream}</a></h3>
|
||||
<div class="stream-update" id="stream-update"></div>
|
||||
</header>
|
||||
|
||||
|
||||
|
|
|
@ -15,6 +15,11 @@
|
|||
.block .max-height-200 { overflow: auto; max-height: 200px; _height: expression( this.scrollHeight > 200 ? "200px" : "auto" ); position: relative; }
|
||||
|
||||
|
||||
/* Block Type - Stream */
|
||||
.block.block-type-stream .stream-update { position: absolute; top: 13px; right: 15px; width: 16px; height: 16px; background: url(../images/update.gif) no-repeat; cursor: pointer; }
|
||||
.block.block-type-stream .stream-update.active { background-position: -16px 0; }
|
||||
|
||||
|
||||
/* Block Type - Activity Settings */
|
||||
.block.block-type-activity p { margin-bottom: 15px; }
|
||||
.block.block-type-activity ul li { margin-bottom: 5px; }
|
||||
|
|
Loading…
Reference in a new issue