Revision fc6f43c3 snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_create_view.js
b/snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_create_view.js | ||
---|---|---|
314 | 314 |
hide_list_loading: function() { |
315 | 315 |
this.$(".images-list-cont").removeClass("loading"); |
316 | 316 |
}, |
317 |
|
|
318 |
display_warning_for_image: function(image) { |
|
319 |
if (!image.is_system_image() && !image.owned_by(synnefo.user)) { |
|
320 |
$(".create-vm .image-warning").show(); |
|
321 |
} else { |
|
322 |
$(".create-vm .image-warning").hide(); |
|
323 |
} |
|
324 |
}, |
|
317 | 325 |
|
318 | 326 |
select_image: function(image) { |
319 | 327 |
if (image && image.get('id') && !_.include(this.images_ids, image.get('id'))) { |
... | ... | |
332 | 340 |
|
333 | 341 |
if ((!this.selected_image && image) || (this.selected_image != image)) |
334 | 342 |
this.trigger("change", image); |
343 |
this.display_warning_for_image(image); |
|
335 | 344 |
|
336 | 345 |
this.selected_image = image; |
337 | 346 |
|
Also available in: Unified diff