diff --git a/templates/skin/developer-jquery/blocks/block.stream.tpl b/templates/skin/developer-jquery/blocks/block.stream.tpl index 1e9ecf12..f13e6d3d 100644 --- a/templates/skin/developer-jquery/blocks/block.stream.tpl +++ b/templates/skin/developer-jquery/blocks/block.stream.tpl @@ -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 ); + }); }); @@ -43,6 +51,7 @@

{$aLang.block_stream}

+
diff --git a/templates/skin/developer-jquery/css/blocks.css b/templates/skin/developer-jquery/css/blocks.css index 58dfba21..92bb181f 100644 --- a/templates/skin/developer-jquery/css/blocks.css +++ b/templates/skin/developer-jquery/css/blocks.css @@ -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; }