Commit d964b5e3 authored by Ruslan Kabalin's avatar Ruslan Kabalin
Browse files

Add the feedback message processing to upgrade process.



This can be used for installation as well.

Change-Id: I8eb01d792123ad70c14de59f6d245cfc96452a17
Signed-off-by: default avatarRuslan Kabalin <ruslan.kabalin@luns.net.uk>
parent f6101a74
......@@ -94,6 +94,7 @@ if (!empty($upgrade)) {
$data['install'] = $upgrade->install;
}
$data['error'] = false;
$data['feedback'] = $SESSION->render_messages();
json_reply(false, $data);
exit;
}
......
......@@ -142,6 +142,11 @@ $js = <<< EOJS
message += data.newversion ? data.newversion : '?';
}
$(data.key).innerHTML = '<img src="{$successicon}" alt=":)" /> ' + message;
if (data.feedback) {
var feedback_element = DIV();
feedback_element.innerHTML = data.feedback;
appendChildNodes('messages', feedback_element);
}
processNext();
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment