first commit
This commit is contained in:
18
ProjectTemplate/js/hard_func.js
Normal file
18
ProjectTemplate/js/hard_func.js
Normal file
@@ -0,0 +1,18 @@
|
||||
function efunc(qid) {
|
||||
if(qid === "ALL"){
|
||||
$(document).off('click', 'td:has(input[type=radio], input[type=checkbox])').on('click', 'td:has(input[type=radio], input[type=checkbox])', function(e) {
|
||||
var $input = $(this).find('input');
|
||||
|
||||
if (e.target === $input[0]) return;
|
||||
|
||||
if ($input.attr('type') === 'radio') {
|
||||
$input.prop('checked', true).trigger('change');
|
||||
} else if ($input.attr('type') === 'checkbox') {
|
||||
$input.prop('checked', !$input.prop('checked')).trigger('change');
|
||||
}
|
||||
});
|
||||
}// ALL
|
||||
switch(qid){
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user