Skip to content
Permalink
Browse files

Remove unused javascript

  • Loading branch information...
davidmerfield committed Mar 8, 2019
1 parent 2541d25 commit ece41d9d833959e15e74b5bb50e8e587c1772b5e
Showing with 0 additions and 39 deletions.
  1. +0 −39 app/dashboard/views/partials/wrapper.html
@@ -87,44 +87,5 @@
{{#links_for_footer}}
{{{html}}}
{{/links_for_footer}}

<script type="text/javascript">
// $('input.button:not(.small)').each(function(){
// $(this).click(function(){
// $(this).addClass('working').val('Saving changes');
// });
// });
var opener = document.querySelector('.dropdown .opener');
var closer = document.querySelector('.dropdown .closer');
var dropdown = document.querySelector('.dropdown');
opener.addEventListener('click', function(e){ //say this is an anchor
function close (e) {
if (dropdown.className.split(' ').indexOf('closed') === -1)
dropdown.className += ' closed';
document.body.removeEventListener('click', close);
}
if (dropdown.className.split(' ').indexOf('closed') === -1) {
dropdown.className += ' closed';
document.body.removeEventListener('click', close);
} else {
dropdown.className = dropdown.className.split('closed').join('');
document.body.addEventListener('click', close);
}
e.preventDefault();
e.stopPropagation();
});
</script>
</body>
</html>

0 comments on commit ece41d9

Please sign in to comment.
You can’t perform that action at this time.