mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 15:36:22 +08:00
fixes hound
This commit is contained in:
parent
1b1e6daa21
commit
dd8e5d5e12
|
@ -148,22 +148,22 @@ function updateSamplesTypesandGroups() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function sampleAlertMsg(message, type) {
|
function sampleAlertMsg(message, type) {
|
||||||
var alert_type, glyph_sign;
|
var alertType, glyphSign;
|
||||||
if (type == "success") {
|
if (type == 'success') {
|
||||||
alert_type = " alert-success ";
|
alertType = ' alert-success ';
|
||||||
glyph_sign = " glyphicon-ok-sign ";
|
glyphSign = ' glyphicon-ok-sign ';
|
||||||
} else if (type == "danger") {
|
} else if (type == 'danger') {
|
||||||
alert_type = " alert-danger ";
|
alertType = ' alert-danger ';
|
||||||
glyph_sign = " glyphicon-exclamation-sign ";
|
glyphSign = ' glyphicon-exclamation-sign ';
|
||||||
}
|
}
|
||||||
var html_snippet = '<div class="alert' + alert_type + 'alert-dismissable alert-floating">' +
|
var htmlSnippet = '<div class="alert' + alertType + 'alert-dismissable alert-floating">' +
|
||||||
'<div class="container">' +
|
'<div class="container">' +
|
||||||
'<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>' +
|
'<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>' +
|
||||||
'<span class="glyphicon' + glyph_sign + '"></span>' +
|
'<span class="glyphicon' + glyphSign + '"></span>' +
|
||||||
'<span>'+ message +'</span>' +
|
'<span>'+ message +'</span>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>';
|
'</div>';
|
||||||
$('#notifications').html(html_snippet);
|
$('#notifications').html(htmlSnippet);
|
||||||
$('#content-wrapper').addClass('alert-shown');
|
$('#content-wrapper').addClass('alert-shown');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue