Move js into a file for status in form

This commit is contained in:
chris committed 2013-09-11 18:38:56 +08:00
1 parent 579bc3c245
commit 911cfdc980
3 files changed
+12 -9

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
$(function() {
$(document).on('click',"*[data-toggle=buttons-checkbox] input",function(){
var d = $(this).parent().find("input[type=hidden]");
if($(this).is(":checked")){
d.val("1");
}else{
d.val("0");
}
})
});