diff --git a/public/js/icinga/behavior/modal.js b/public/js/icinga/behavior/modal.js index 90869389a..a575e01ea 100644 --- a/public/js/icinga/behavior/modal.js +++ b/public/js/icinga/behavior/modal.js @@ -109,6 +109,11 @@ req.addToHistory = false; req.$redirectTarget = $modal.data('redirectTarget'); req.done(function (data, textStatus, req) { + var title = req.getResponseHeader('X-Icinga-Title'); + if (!! title) { + _this.setTitle($modal, decodeURIComponent(title).replace(/\s::\s.*/, '')); + } + if (req.getResponseHeader('X-Icinga-Redirect')) { _this.hide($modal); }