WebRoot/js/custom/newsfeed.js

(完整代码) 1KB

/*
 * 	Additional function for newsfeed.html
 *	Written by ThemePixels	
 *	http://themepixels.com/
 *
 *	Copyright (c) 2012 ThemePixels (http://themepixels.com)
 *	
 *	Built for Amanda Premium Responsive Admin Template
 *  http://themeforest.net/category/site-templates/admin-templates
 */

jQuery(document).ready(function(){
	
	///// AUTOGROW TEXTAREA /////
	jQuery('#statustext, #statusphoto').autogrow();
	
	///// PREVIEW IMAGE /////
	jQuery('.updatecontent .photo a').colorbox();
	
	///// ANIMATE IMAGE HOVER /////
	jQuery('.updatecontent .photo').hover(function(){
		jQuery(this).find('img').stop().animate({opacity: 0.75});
	}, function(){
		jQuery(this).find('img').stop().animate({opacity: 1});
	});
	
	///// FORM TRANSFORMATION /////
	jQuery('input:file').uniform();
	
	///// POST STATUS /////
	jQuery('#poststatus,#postphoto').submit(function(){
		var t = jQuery(this);
		var url = t.attr('action');											 
		var msg = t.find('textarea').val();
		jQuery.post(url,{message: msg},function(data){
			jQuery(data).insertBefore('.updatelist li:first-child');
			t.find('textarea').val('');
		});
		return false;
	});

});

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。