Revision eab078ee snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_networks_view.js

b/snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_networks_view.js
517 517
      
518 518
      check_empty: function() {
519 519
        views.NetworksCollectionView.__super__.check_empty.apply(this, arguments);
520
        //if (this.$(".private").children().length == 0) {
521
          //this.$(".private").hide();
522
        //} else {
523
          //this.$(".private").show();
524
        //}
520
        if (this.collection.filter(function(n){ return !n.is_public()}).length == 0) {
521
          this.$(".private").hide();  
522
        } else {
523
          this.$(".private").show();  
524
        }
525 525
      },
526 526

  
527 527
      add_model: function(m) {

Also available in: Unified diff