WebRoot/js/custom/blog.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* Additional function for manageblog.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(){
///// load ajax/blog/allposts.html /////
jQuery.post('ajax/blog/allposts.html', function(data){
jQuery('#contentwrapper').html(data);
jQuery('.stdtable input:checkbox').uniform(); //restyling checkbox
});
jQuery('.checkall, .checkall2').live('click',function(){
if(!jQuery(this).is(':checked')) {
checkbox(jQuery(this),false);
} else {
checkbox(jQuery(this),true);
}
});
function checkbox(t,v) {
t.parents('table').find('input[type=checkbox]').each(function(){
if(!jQuery(this).parents('tr').hasClass('togglerow')) {
jQuery(this).attr('checked',v);
}
jQuery.uniform.update();
});
}
///// DELETE A SINGLE BLOG LIST /////
jQuery('.stdtable .delete').live('click',function(){
var p = jQuery(this).parents('tr');
jConfirm('Are you sure you want to delete this post?', 'Delete Post', function(r) {
if(r) {
if(p.next().hasClass('togglerow'))
p.next().remove();
p.fadeOut(function(){
jQuery(this).remove();
});
}
});
return false;
});
///// QUICK VIEW /////
jQuery('.quickview').live('click', function(){
var parent = jQuery(this).parents('tr');
后面还有 77 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。