Revision dbb907bc
b/snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_ips_view.js | ||
---|---|---|
143 | 143 |
collection_name: 'floating_ips', |
144 | 144 |
model_view_cls: views.IpView, |
145 | 145 |
create_view: views.IpCreateView, |
146 |
parent_for_model: function(m) { |
|
147 |
if (m.get('port_id')) { |
|
148 |
return this.list_el.find(".active"); |
|
149 |
} else { |
|
150 |
return this.list_el.find(".inactive"); |
|
151 |
} |
|
152 |
}, |
|
153 | 146 |
initialize: function() { |
154 | 147 |
views.IpCollectionView.__super__.initialize.apply(this, arguments); |
155 | 148 |
this.connect_view = new views.IPConnectVmOverlay(); |
b/snf-cyclades-app/synnefo/ui/templates/partials/ips.html | ||
---|---|---|
97 | 97 |
</div> |
98 | 98 |
|
99 | 99 |
<div class="items-list clearfix"> |
100 |
<div class="items-sublist inactive"></div> |
|
101 |
<div class="items-sublist active"></div> |
|
102 | 100 |
</div> |
103 | 101 |
</div> |
104 | 102 |
</div> |
Also available in: Unified diff