setPostParams:function(path,path_type,from,prefix_neid){ var self = this; self.path = path; self.path_type = path_type; self.from = from; self.prefix_neid = prefix_neid; var post_params = {path:path,path_type:path_type,uid:Util.getUserID()}; if(from){ post_params.from = from; } if(/^share/.test(path_type) && parseInt(prefix_neid) > 0){ post_params.prefix_neid = prefix_neid; } /* self.cache.instance.flashReady(function(){ self.cache.instance.setPostParams(post_params); });*/ $(".uploadButton").css("left",Util.getElementXPos(document.getElementById("upload_button"))).show(); },
$(comboxIdforJq).click(function(e){ var ul = $(e.currentTarget).find("ul"); if (ul.css("display") == "none") { var height_ul = ul.height(); var ypos_ul = Util.getElementYPos(document.getElementById(comboxId))+22; var xpos_ul = Util.getElementXPos(document.getElementById(comboxId))+1; var pageHeight = Util.getTotalHeight(); var scrollHeight = $('.lui-auth-list').scrollTop(); //$(comboxIdforJq).css("position", "relative"); ul.css({position: "fixed", "background": "#FFF", left:xpos_ul, top:ypos_ul-scrollHeight,width:$(this).width()}); if((height_ul+ypos_ul-scrollHeight)>pageHeight){ ul.css({top:ypos_ul-scrollHeight-height_ul}); } ul.show(); } else { ul.removeAttr("position"); ul.css("background", "#FFF"); $(comboxIdforJq).removeAttr("position"); ul.hide(); } });