From 9e599da3655f190ee81af9dacfc27d0eb5daf897 Mon Sep 17 00:00:00 2001 From: ouyangxuhua Date: Tue, 29 Mar 2016 15:47:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E7=BB=87=E5=8A=A8=E6=80=81=EF=BC=8C?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=B1=95=E5=BC=80=E6=9B=B4=E5=A4=9A=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=8F=8D=E5=BA=94=E9=97=AE=E9=A2=98=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/application.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 0045b0ce3..9c3afd48b 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -1221,3 +1221,20 @@ function clear_data(k,mdu){ $("#e_tip").html(""); } } + +function expand_reply(container,btnid){ + var target = $(container); + var btn = $(btnid); + if(btn.data('init')=='0'){ + btn.data('init',1); + btn.html('收起回复'); + target.show(); + }else{ + btn.data('init',0); + btn.html('展开更多'); + target.hide(); + target.eq(0).show(); + target.eq(1).show(); + target.eq(2).show(); + } +}