Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
89c6928d
Commit
89c6928d
authored
Nov 14, 2013
by
Kostas Papadimitriou
Browse files
ui: Hide empty private network list
parent
0f84ef48
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_networks_view.js
View file @
89c6928d
...
...
@@ -517,11 +517,11 @@
check_empty
:
function
()
{
views
.
NetworksCollectionView
.
__super__
.
check_empty
.
apply
(
this
,
arguments
);
//
if (this.
$(".private").children(
).length == 0) {
//
this.$(".private").hide();
//
} else {
//
this.$(".private").show();
//
}
if
(
this
.
collection
.
filter
(
function
(
n
){
return
!
n
.
is_public
()}
).
length
==
0
)
{
this
.
$
(
"
.private
"
).
hide
();
}
else
{
this
.
$
(
"
.private
"
).
show
();
}
},
add_model
:
function
(
m
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment