1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-03 06:55:03 +03:00

Кнопка обновления прямого эфира

This commit is contained in:
Denis Shakhov 2012-04-21 20:09:06 +07:00
parent e61fe859df
commit 79a1c28d6c
2 changed files with 14 additions and 0 deletions

View file

@ -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>

View file

@ -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; }