1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

fixed alert dialog box

This commit is contained in:
Jared Tabor 2014-07-31 13:52:32 -04:00
parent f7ed4eceb3
commit 5646a8d4fe

View File

@ -81,9 +81,9 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
if (secondAlert) {
e = angular.element(document.getElementById('alert-modal2'));
$('#alertHeader2').text(hdr);
$('#alert2-modal-msg').text(msg);
$("#alertHeader").text(msg);
$('#alertHeader2').html(hdr);
$('#alert2-modal-msg').html(msg);
alertClass = (cls) ? cls : 'alert-danger'; //default alert class is alert-danger
$('#alert2-modal-msg').attr({ "class": "alert " + alertClass });
@ -107,8 +107,8 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
} else {
e = angular.element(document.getElementById('alert-modal'));
$('#alertHeader').text(hdr);
$('#alert-modal-msg').text(msg);
$('#alertHeader').html(hdr);
$('#alert-modal-msg').html(msg);
alertClass = (cls) ? cls : 'alert-danger'; //default alert class is alert-danger
$('#alert-modal-msg').attr({ "class": "alert " + alertClass });
$('#alert-modal').modal({