From 79a1c28d6c62325a8cdf6465d3c6be8d1248f6db Mon Sep 17 00:00:00 2001 From: Denis Shakhov Date: Sat, 21 Apr 2012 20:09:06 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BD=D0=BE=D0=BF=D0=BA=D0=B0=20=D0=BE?= =?UTF-8?q?=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF?= =?UTF-8?q?=D1=80=D1=8F=D0=BC=D0=BE=D0=B3=D0=BE=20=D1=8D=D1=84=D0=B8=D1=80?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/skin/developer-jquery/blocks/block.stream.tpl | 9 +++++++++ templates/skin/developer-jquery/css/blocks.css | 5 +++++ 2 files changed, 14 insertions(+) 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; }