| 426 | sliderHandle && toggleEvents(cell, true); |
| 427 | }); |
| 428 | var radioOrCheckboxClick = function(event) { |
| 429 | var type = event.target && event.target.type || ''; |
| 430 | if (type === 'radio' || type === 'checkbox') { |
| 431 | return; |
| 432 | } |
| 433 | var classList = cell.classList; |
| 434 | if (classList.contains($.className('radio'))) { |
| 435 | var input = cell.querySelector('input[type=radio]'); |
| 436 | if (input) { |
| 437 | // input.click(); |
| 438 | if (!input.disabled && !input.readOnly) { |
| 439 | input.checked = !input.checked; |
| 440 | $.trigger(input, 'change'); |
| 441 | } |
| 442 | } |
| 443 | } else if (classList.contains($.className('checkbox'))) { |
| 444 | var input = cell.querySelector('input[type=checkbox]'); |
| 445 | if (input) { |
| 446 | // input.click(); |
| 447 | if (!input.disabled && !input.readOnly) { |
| 448 | input.checked = !input.checked; |
| 449 | $.trigger(input, 'change'); |
| 450 | } |
| 451 | } |
| 452 | } |
| 453 | }; |
| 454 | //fixed hashchange(android) |
| 455 | window.addEventListener($.EVENT_CLICK, function(e) { |
| 456 | if (cell && cell.classList.contains($.className('collapse'))) { |