Commit 30313891 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

error dialog didn't work because of downgrade of jquery-ui

parent 01b4e0de
......@@ -727,26 +727,21 @@ h1 {
/**
error report dialog style
*/
.report-dialog label.ui-checkboxradio-label {
.report-dialog label {
border: 1px solid #fff;
}
.report-dialog label.ui-checkboxradio-label:active {
background: rgb(32, 189, 241);
width: 100%;
}
.report-dialog label.ui-checkboxradio-checked {
background: rgb(32, 189, 241);
border: 1px solid #fff;
}
.report-dialog label.ui-checkboxradio-checked:hover {
.report-dialog label:hover {
background: rgb(152, 220, 243);
border: 1px solid #fff;
}
.report-dialog span.ui-icon-info {
float: right;
margin-top: 3px;
}
.report-tooltip {
......
......@@ -310,6 +310,7 @@ GuiConnector.prototype.alert = function (error, redirectIfSecurityError) {
self.showErrorDialog("An error occurred!", errorData.message);
} else {
self._errorDialog = document.createElement('div');
self._errorDialog.className = "report-dialog";
self._errorDialog.innerHTML = '<span class="ui-icon ui-icon-info" style="float: right;" title="The error message. This might not be human readable. If this issue persists you should should contact your administrator."></span>' +
'<span>' + errorData.message + '</span>';
self.gatherReportData().then(function (data) {
......@@ -319,10 +320,10 @@ GuiConnector.prototype.alert = function (error, redirectIfSecurityError) {
self._errorDialogData.innerHTML += '<textarea id="report-comment" maxlength="255" placeholder="Add comment..."></textarea>';
Object.keys(data).forEach(function (key) {
self._errorDialogData.innerHTML += '<label>' +
(key === 'timestamp' ? new Date(data[key].value * 1000) : data[key].value) +
'<input class="report-check" type="checkbox" data-key="' + key + '" data-value="' + data[key].value + '"/>' +
(key === 'timestamp' ? new Date(data[key].value * 1000) : data[key].value) +
'<span class="ui-icon ui-icon-info" title="' + data[key].tooltip + '"></span>' +
'</label>';
'</label><br/>';
});
self._errorDialogData.innerHTML += '<div id="report-stacktrace">' +
'<h3>Stacktrace' +
......@@ -333,11 +334,11 @@ GuiConnector.prototype.alert = function (error, redirectIfSecurityError) {
$('#report-stacktrace')
.accordion({active: false, collapsible: true});
$('.report-check')
.checkboxradio()
.prop('checked', true)
.button('refresh');
$(self._errorDialogData)
.controlgroup({direction: 'vertical'});
// .checkboxradio()
.prop('checked', true);
// .button('refresh');
// $(self._errorDialogData)
// .controlgroup({direction: 'vertical'});
$(self._errorDialog)
.tooltip({
classes: {
......
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