Revision dbb907bc snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_ips_view.js
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(); |
Also available in: Unified diff