编辑作业时选不了资源库资源

This commit is contained in:
cxt 2015-10-24 10:47:04 +08:00
parent 16f0868df3
commit 787b9af429
1 changed files with 13 additions and 0 deletions

View File

@ -16,6 +16,19 @@
$(this).addClass("referenceTypeActive");
});
});
// 点击 checkbox选中引用的资源的时候保存该资源的id到session里去
function store_seleted_resource(dom){
if(dom.attr('checked') == 'checked' ){
$.get(
'<%= store_selected_resource_user_path %>'+'?save=y&res_id='+dom.val()
)
}else {
$.get(
'<%= store_selected_resource_user_path %>'+'?save=n&res_id='+dom.val()
)
}
}
</script>
<!--<div class="referenceResourcesPopup">-->
<div>