|
|
|
@ -3,16 +3,16 @@
|
|
|
|
|
<script>
|
|
|
|
|
//$(function(){if($("#contentmessage<%#=topic.id %>").height()>182){$("#project_show_<%#= topic.id%>").show();}});
|
|
|
|
|
//解决由于图片加载慢造成div高度不够 以至于展开按钮不显示的bug
|
|
|
|
|
$(function(){
|
|
|
|
|
/*$(function(){
|
|
|
|
|
function nh_show_btn(){
|
|
|
|
|
if($("#activity_message_<%= user_activity.id%>").is(':hidden')){
|
|
|
|
|
if($("#activity_description_<%= user_activity.id%>").height()>120){
|
|
|
|
|
$("#activity_description_<%= user_activity.id%>").toggleClass("activity_description_maxHeight");
|
|
|
|
|
$("#activity_message_<%= user_activity.id%>").show();
|
|
|
|
|
if($("#activity_message_<%#= user_activity.id%>").is(':hidden')){
|
|
|
|
|
if($("#activity_description_<%#= user_activity.id%>").height()>120){
|
|
|
|
|
$("#activity_description_<%#= user_activity.id%>").toggleClass("activity_description_maxHeight");
|
|
|
|
|
$("#activity_message_<%#= user_activity.id%>").show();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var div = $("#activity_description_<%= user_activity.id%>");
|
|
|
|
|
var div = $("#activity_description_<%#= user_activity.id%>");
|
|
|
|
|
var imgs = $('img',div);
|
|
|
|
|
var lens = imgs.length;
|
|
|
|
|
function nh_load_img_end(){
|
|
|
|
@ -24,8 +24,8 @@
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
nh_show_btn();
|
|
|
|
|
});
|
|
|
|
|
function show_more_reply(contentid, id2, id3) {
|
|
|
|
|
});*/
|
|
|
|
|
/*function show_more_reply(contentid, id2, id3) {
|
|
|
|
|
$(contentid).toggleClass("activity_description_maxHeight");
|
|
|
|
|
$(contentid).toggleClass("course_description_none");
|
|
|
|
|
var information = $(id2);
|
|
|
|
@ -41,7 +41,7 @@
|
|
|
|
|
information.attr("value", "show_more");
|
|
|
|
|
arrow.attr("src", "/images/jiantou.jpg")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}*/
|
|
|
|
|
function expand_reply(container,btnid){
|
|
|
|
|
var target = $(container);
|
|
|
|
|
var btn = $(btnid);
|
|
|
|
|