making Alert class resetable and adding first tests for it

This commit is contained in:
El RIDO 2017-10-23 21:33:07 +02:00
parent d75cea856a
commit 9c6aec86c4
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
4 changed files with 100 additions and 8 deletions

View file

@ -1004,12 +1004,7 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
$statusMessage,
$remainingTime;
var currentIcon = [
'glyphicon-time', // loading icon
'glyphicon-info-sign', // status icon
'', // resevered for warning, not used yet
'glyphicon-alert' // error icon
];
var currentIcon;
var alertType = [
'loading', // not in bootstrap, but using a good value here
@ -1253,6 +1248,13 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
$loadingIndicator = $('#loadingindicator');
$statusMessage = $('#status');
$remainingTime = $('#remainingtime');
currentIcon = [
'glyphicon-time', // loading icon
'glyphicon-info-sign', // status icon
'', // reserved for warning, not used yet
'glyphicon-alert' // error icon
];
}
return me;