mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 15:24:05 +02:00
parent
4473008d65
commit
bbe018567f
@ -46,20 +46,24 @@ define(['jquery', 'logging', 'URIjs/URI', 'icinga/componentLoader'], function($,
|
||||
*/
|
||||
this.refresh = function () {
|
||||
$.ajax({
|
||||
url: this.dashboardUrl
|
||||
}).done((function(response) {
|
||||
url: this.dashboardUrl,
|
||||
context: this
|
||||
})
|
||||
.done(function (response) {
|
||||
this.container.empty();
|
||||
this.container.html(response);
|
||||
components.load();
|
||||
})
|
||||
.fail(function (response, reason) {
|
||||
this.container.html(response.responseText);
|
||||
})
|
||||
.always(function () {
|
||||
dashboardContainer.freetile('layout');
|
||||
$(window).on('layoutchange', function() {
|
||||
dashboardContainer.freetile('layout');
|
||||
});
|
||||
|
||||
this.triggerRefresh();
|
||||
components.load();
|
||||
}).bind(this)).fail((function(response, reason) {
|
||||
this.container.html(response);
|
||||
}).bind(this));
|
||||
})
|
||||
};
|
||||
|
||||
this.triggerRefresh = function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user