diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-20 19:53:21 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-20 19:53:21 -0700 |
commit | 89673894356e29ac48ebaba5bd75d03690da1d66 (patch) | |
tree | 6a9cc12ea6a1097781b917e480ffa8b138d5c535 /app/src/main/assets/js/menu_click.js | |
parent | 13b8505674e08cc1610ce7e77d7db8fa292372cf (diff) | |
download | frost-89673894356e29ac48ebaba5bd75d03690da1d66.tar.gz frost-89673894356e29ac48ebaba5bd75d03690da1d66.tar.bz2 frost-89673894356e29ac48ebaba5bd75d03690da1d66.zip |
Fix up url overlays and theme more components
Diffstat (limited to 'app/src/main/assets/js/menu_click.js')
-rw-r--r-- | app/src/main/assets/js/menu_click.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/app/src/main/assets/js/menu_click.js b/app/src/main/assets/js/menu_click.js deleted file mode 100644 index 403689eb..00000000 --- a/app/src/main/assets/js/menu_click.js +++ /dev/null @@ -1,15 +0,0 @@ -// we will handle click events -console.log('Registering menu click'); -document.addEventListener('click', function _menuClick(e) { - var element = e.target || e.srcElement; - if (element.tagName !== 'A') - element = element.parentNode; - if (element.tagName === 'A' && element.getAttribute('href') !== '#') { - var url = element.getAttribute('href'); - console.log('Click Intercept'); - console.log(url); - Frost.loadUrl(url); - e.stopPropagation(); - e.preventDefault(); - } -}, true); |