Revision f70c8d47

b/snf-cyclades-app/synnefo/ui/static/snf/js/models.js
1592 1592
                    callback(this.get(id));
1593 1593
                }
1594 1594
            }, this), _.bind(function(image, msg, xhr) {
1595
                if (!image) {
1596
                    this.add({id:id, name:"Unknown image", size:-1, 
1597
                              progress:100, status:"DELETED"});
1598
                    callback(this.get(id));
1599
                    return;
1600
                }
1595 1601
                var img_data = this._read_image_from_request(image, msg, xhr);
1596 1602
                this.add(img_data);
1597 1603
                callback(this.get(id));

Also available in: Unified diff