1 // -*- mode: javascript; js-indent-level: 4; indent-tabs-mode: nil; -*-
2 // Place all the behaviors and hooks related to the matching controller here.
3 // All this logic will automatically be available in application.js.
7 if (loaded_nodes_js) return; loaded_nodes_js = true;
9 $('[data-showhide-selector]').on('click', function(e){
10 var x = $($(this).attr('data-showhide-selector'));
11 if (x.css('display') == 'none')
16 $('[data-showhide-default]').hide();