Merge branch 'master' into 3699-arv-copy
[arvados.git] / services / api / app / assets / javascripts / nodes.js
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.
4
5 var loaded_nodes_js;
6 $(function(){
7     if (loaded_nodes_js) return; loaded_nodes_js = true;
8
9     $('[data-showhide-selector]').on('click', function(e){
10         var x = $($(this).attr('data-showhide-selector'));
11         if (x.css('display') == 'none')
12             x.show();
13         else
14             x.hide();
15     });
16     $('[data-showhide-default]').hide();
17 });