Revision e42dd608 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 | ||
---|---|---|
1628 | 1628 |
|
1629 | 1629 |
this.history = this.$(".steps-history"); |
1630 | 1630 |
this.history_steps = this.$(".steps-history .steps-history-step"); |
1631 |
|
|
1632 |
this.loading_view = $("<div>Loading images...</div>"); |
|
1633 |
this.$(".container").after(this.loading_view); |
|
1634 |
this.loading_view.css({ |
|
1635 |
backgroundColor: "#97C3D6", |
|
1636 |
padding: '15px', |
|
1637 |
fontSize: '0.7em', |
|
1638 |
color: '#333' |
|
1639 |
}); |
|
1631 | 1640 |
|
1632 | 1641 |
this.init_handlers(); |
1633 | 1642 |
}, |
... | ... | |
1756 | 1765 |
this.$(".steps-container").css({"margin-left":0 + "px"}); |
1757 | 1766 |
this.show_step(1); |
1758 | 1767 |
} |
1759 |
|
|
1768 |
|
|
1769 |
this.loading_view.show(); |
|
1770 |
this.$(".container").hide(); |
|
1771 |
var complete = _.bind(function() { |
|
1772 |
this.loading_view.hide(); |
|
1773 |
this.$(".container").slideDown(); |
|
1774 |
this.update_layout(); |
|
1775 |
}, this); |
|
1776 |
|
|
1777 |
synnefo.storage.images.fetch({complete: complete}); |
|
1778 |
|
|
1760 | 1779 |
this.skip_reset_on_next_open = false; |
1761 |
this.update_layout(); |
|
1762 | 1780 |
}, |
1763 | 1781 |
|
1764 | 1782 |
set_step: function(step) { |
Also available in: Unified diff