编辑作业时选不了资源库资源
This commit is contained in:
parent
16f0868df3
commit
787b9af429
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue