Revision b9748526 snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_public_ips_view.js

b/snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_public_ips_view.js
271 271
        show: function(view) {
272 272
            this.from_view = view || undefined;
273 273
            
274
            if (this.from_view) {
275
                this.$(".previous-view-link").show();
276
            } else {
277
                this.$(".previous-view-link").hide();
278
            }
279 274
            if (!this.fetcher) {
280 275
              this.fetcher = snf.storage.public_ips.get_fetcher.apply(snf.storage.public_ips, 
281 276
                                                        _.clone(this.fetcher_params));
......
284 279
            this.subview.reset();
285 280
            this.subview.update_models();
286 281
            views.PublicIPsOverlay.__super__.show.apply(this, arguments);
282

  
283
            if (this.from_view) {
284
                this.$(".previous-view-link").show();
285
                $(this.subview.el).addClass("from-create");
286
            } else {
287
                this.$(".previous-view-link").hide();
288
                $(this.subview.el).removeClass("from-create");
289
            }
287 290
        },
288 291
        
289 292
        init_handlers: function() {

Also available in: Unified diff