Revision 6866bbdc
b/snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_networks_view.js | ||
---|---|---|
281 | 281 |
if (hide) { |
282 | 282 |
this.firewall.stop().hide(); |
283 | 283 |
} else { |
284 |
if (!cb) { cb = function() {}} |
|
285 |
this.firewall.slideToggle(cb); |
|
284 |
this.firewall.slideToggle(function() { |
|
285 |
cb && cb(); |
|
286 |
$(window).trigger("resize"); |
|
287 |
}); |
|
286 | 288 |
} |
287 | 289 |
this.firewall_toggler.toggleClass("open"); |
288 | 290 |
this.firewall_visible = this.firewall_toggler.hasClass("open"); |
... | ... | |
403 | 405 |
}, |
404 | 406 |
|
405 | 407 |
toggle_ports: function(e, hide) { |
408 |
$(window).trigger("resize"); |
|
406 | 409 |
hide = hide === undefined ? false : hide; |
407 | 410 |
if (hide) { |
408 | 411 |
this.ports.stop().hide(); |
409 | 412 |
} else { |
410 |
this.ports.stop().slideToggle(); |
|
413 |
this.ports.stop().slideToggle(function() { |
|
414 |
$(window).trigger("resize"); |
|
415 |
}); |
|
411 | 416 |
} |
412 | 417 |
this.ports_toggler.find(".cont-toggler").toggleClass("open"); |
413 | 418 |
this.ports_visible = this.ports_toggler.find(".cont-toggler").hasClass("open"); |
b/snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_public_keys_view.js | ||
---|---|---|
285 | 285 |
|
286 | 286 |
toggle_content: function() { |
287 | 287 |
if (!this.content_visible) { |
288 |
this.content.slideDown(); |
|
288 |
this.content.slideDown(function() { |
|
289 |
$(window).trigger("resize"); |
|
290 |
}); |
|
289 | 291 |
this.content_visible = true; |
290 | 292 |
this.content_toggler.addClass("open"); |
291 | 293 |
} else { |
292 |
this.content.slideUp(); |
|
294 |
this.content.slideUp(function() { |
|
295 |
$(window).trigger("resize"); |
|
296 |
}); |
|
293 | 297 |
this.content_visible = false; |
294 | 298 |
this.content_toggler.removeClass("open"); |
295 | 299 |
} |
b/snf-cyclades-app/synnefo/ui/static/snf/js/views_ext.js | ||
---|---|---|
290 | 290 |
|
291 | 291 |
handle_model_add: function(model, collection, options) { |
292 | 292 |
this.add_model(model); |
293 |
$(window).trigger("resize"); |
|
293 | 294 |
}, |
294 | 295 |
|
295 | 296 |
handle_model_remove: function(model, collection, options) { |
... | ... | |
404 | 405 |
model_view.el.remove(); |
405 | 406 |
this.remove_view(model_view); |
406 | 407 |
this.post_remove_model_view(model_view, m); |
408 |
$(window).trigger("resize"); |
|
407 | 409 |
delete this._model_views[m.id]; |
408 | 410 |
this.check_empty(); |
409 | 411 |
}, |
Also available in: Unified diff