Revision 681c9851 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
        var overlay = this.parent_view.connect_view;
144 144
        overlay.set_in_progress();
145 145
        _.each(vms, function(vm) {
146
          vm.connect_floating_ip(this.model, this.connect_complete);
146
          vm.connect_floating_ip(this.model, 
147
                                 _.bind(this.connect_complete,this),
148
                                 _.bind(this.connect_error, this));
147 149
        }, this);
148 150
      },
149 151

  
......
154 156
        this.model.set({'status': 'CONNECTING'});
155 157
      },
156 158

  
159
      connect_error: function() {
160
        var overlay = this.parent_view.connect_view;
161
        overlay.hide();
162
        overlay.unset_in_progress();
163
      },
164

  
157 165
      remove: function(model, e) {
158 166
        e && e.stopPropagation();
159 167
        this.model.do_destroy();

Also available in: Unified diff