提交作品 那里 也有引入资源库的需求,也需要分页多选。

This commit is contained in:
lizanle 2015-10-12 16:26:47 +08:00
parent 9a7b1c78ae
commit d3590b6a6e
1 changed files with 14 additions and 0 deletions

View File

@ -21,6 +21,20 @@
"<a href='javascript:' onclick='clickCanel();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
$('#ajax-modal').parent().css("top","30%").css("left","20%").css("position","fixed");
}
// 点击 checkbox选中引用的资源的时候保存该资源的id到session里去
function store_seleted_resource(dom){
console.log(dom.attr('checked'))
if(dom.attr('checked') == 'checked' ){
$.get(
'<%= store_selected_resource_user_path(User.current) %>'+'?save=y&res_id='+dom.val()
)
}else {
$.get(
'<%= store_selected_resource_user_path(User.current) %>'+'?save=n&res_id='+dom.val()
)
}
}
</script>
<div class="homepageRightBanner mb10">