(el, onsingle, ondouble)
| 36 | } |
| 37 | |
| 38 | function fancyDblClickHandler(el, onsingle, ondouble) { |
| 39 | return function () { |
| 40 | if (el.getAttribute("data-dblclick") == null) { |
| 41 | el.setAttribute("data-dblclick", 1); |
| 42 | setTimeout(function () { |
| 43 | if (el.getAttribute("data-dblclick") == 1) { |
| 44 | onsingle(); |
| 45 | } |
| 46 | el.removeAttribute("data-dblclick"); |
| 47 | }, 200); |
| 48 | } else { |
| 49 | el.removeAttribute("data-dblclick"); |
| 50 | ondouble(); |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | function smoothScrollToRow(rowid) { |
| 56 | document.getElementById(rowid).scrollIntoView({ |
no outgoing calls
no test coverage detected