cancel
Showing results for 
Search instead for 
Did you mean: 

javascritp for know when Space is empty

rafaelscg
Champ on-the-rise
Champ on-the-rise
Hello,

Im trying to use UI Action to move document for others spaces.
This works fine, but i want remove space if is empty after run the action.
Anybody can tell me how can i do this with javascript?

Thank you
2 REPLIES 2

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
space.children.size or length == 0 ;

rafaelscg
Champ on-the-rise
Champ on-the-rise
Thanks Savic!
The "length" option works for me.  Smiley Very Happy