|
|
|
@ -5,6 +5,41 @@
|
|
|
|
|
/* Redmine - project management software
|
|
|
|
|
Copyright (C) 2006-2013 Jean-Philippe Lang */
|
|
|
|
|
|
|
|
|
|
//动态高度控制
|
|
|
|
|
function description_show_hide(id){
|
|
|
|
|
showNormalImage('activity_description_'+id);
|
|
|
|
|
if($("#intro_content_"+id).height() > 810) {
|
|
|
|
|
$("#intro_content_show_"+id).show();
|
|
|
|
|
}
|
|
|
|
|
$("#intro_content_show_"+id).click(function(){
|
|
|
|
|
$("#activity_description_"+id).toggleClass("maxh360");
|
|
|
|
|
$("#intro_content_show_"+id).hide();
|
|
|
|
|
$("#intro_content_hide_"+id).show();
|
|
|
|
|
});
|
|
|
|
|
$("#intro_content_hide_"+id).click(function(){
|
|
|
|
|
$("#activity_description_"+id).toggleClass("maxh360");
|
|
|
|
|
$("#intro_content_hide_"+id).hide();
|
|
|
|
|
$("#intro_content_show_"+id).show();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function homework_description_show_hide(id){
|
|
|
|
|
showNormalImage('homework_description_'+id);
|
|
|
|
|
if($("#intro_content_"+id).height() > 810) {
|
|
|
|
|
$("#intro_content_show_"+id).show();
|
|
|
|
|
}
|
|
|
|
|
$("#intro_content_show_"+id).click(function(){
|
|
|
|
|
$("#homework_description_"+id).toggleClass("maxh360");
|
|
|
|
|
$("#intro_content_show_"+id).hide();
|
|
|
|
|
$("#intro_content_hide_"+id).show();
|
|
|
|
|
});
|
|
|
|
|
$("#intro_content_hide_"+id).click(function(){
|
|
|
|
|
$("#homework_description_"+id).toggleClass("maxh360");
|
|
|
|
|
$("#intro_content_hide_"+id).hide();
|
|
|
|
|
$("#intro_content_show_"+id).show();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function cleanArray (actual){
|
|
|
|
|
var newArray = new Array();
|
|
|
|
|
for (var i = 0; i< actual.length; i++){
|
|
|
|
|