mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-09-22 05:34:41 -04:00
upgrade bootstrap to 5.3.7
This commit is contained in:
parent
16d6fe4c40
commit
f68650ce5f
11 changed files with 23 additions and 24 deletions
6
js/bootstrap-5.3.3.js
vendored
6
js/bootstrap-5.3.3.js
vendored
File diff suppressed because one or more lines are too long
6
js/bootstrap-5.3.7.js
vendored
Normal file
6
js/bootstrap-5.3.7.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -18,7 +18,6 @@ global.showdown = require('./showdown-2.1.0');
|
|||
global.DOMPurify = require('./purify-3.2.6');
|
||||
global.baseX = require('./base-x-4.0.0').baseX;
|
||||
global.Legacy = require('./legacy').Legacy;
|
||||
require('./bootstrap-3.4.1');
|
||||
require('./privatebin');
|
||||
|
||||
// internal variables
|
||||
|
|
|
@ -10,7 +10,7 @@ describe('Prompt', function () {
|
|||
'string',
|
||||
function (password) {
|
||||
password = password.replace(/\r+|\n+/g, '');
|
||||
var clean = jsdom('', {url: 'ftp://example.com/?0000000000000000'});
|
||||
const clean = jsdom('', {url: 'ftp://example.com/?0000000000000000'});
|
||||
$('body').html(
|
||||
'<div id="passwordmodal" class="modal fade" role="dialog">' +
|
||||
'<div class="modal-dialog"><div class="modal-content">' +
|
||||
|
@ -22,13 +22,14 @@ describe('Prompt', function () {
|
|||
);
|
||||
$.PrivateBin.Model.reset();
|
||||
$.PrivateBin.Model.init();
|
||||
global.bootstrap = require('../bootstrap-5.3.7');
|
||||
$.PrivateBin.Prompt.init();
|
||||
$.PrivateBin.Prompt.requestPassword();
|
||||
$('#passworddecrypt').val(password);
|
||||
// TODO triggers error messages in current jsDOM version, find better solution
|
||||
//$('#passwordform').submit();
|
||||
//var result = $.PrivateBin.Prompt.getPassword();
|
||||
var result = $('#passworddecrypt').val();
|
||||
const result = $('#passworddecrypt').val();
|
||||
$.PrivateBin.Model.reset();
|
||||
// TODO triggers error messages in jsDOM since version 11
|
||||
//clean();
|
||||
|
@ -37,4 +38,3 @@ describe('Prompt', function () {
|
|||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue