@@ -43,9 +43,11 @@ webui.showWarning = function(message) {
43
43
var messageBox = $ ( "#message-box" ) ;
44
44
messageBox . empty ( ) ;
45
45
$ ( '<div class="alert alert-warning alert-dismissible" role="alert">' +
46
- '<button type="button" class="close" data-dismiss="alert">' +
47
- '<span aria-hidden="true">×</span>' +
48
- '<span class="sr-only">Close</span>' +
46
+ '<button type="button" class="btn btn-default close" data-bs-dismiss="alert">' +
47
+ '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">' +
48
+ '<path fill-rule="evenodd" clip-rule="evenodd" d="M13.854 2.146a.5.5 0 0 1 0 .708l-11 11a.5.5 0 0 1-.708-.708l11-11a.5.5 0 0 1 .708 0Z" fill="#000"/>' +
49
+ '<path fill-rule="evenodd" clip-rule="evenodd" d="M2.146 2.146a.5.5 0 0 0 0 .708l11 11a.5.5 0 0 0 .708-.708l-11-11a.5.5 0 0 0-.708 0Z" fill="#000"/>' +
50
+ '</svg>' +
49
51
'</button>' +
50
52
message +
51
53
'</div>' ) . appendTo ( messageBox ) ;
@@ -146,15 +148,17 @@ webui.TabBox = function(buttons) {
146
148
elt . callback ( ) ;
147
149
}
148
150
149
- self . element = $ ( '<ul class="nav nav-pills nav-justified " role="tablist">' ) [ 0 ] ;
151
+ self . element = $ ( '<ul class="nav nav-pills navbar bg-light " role="tablist">' ) [ 0 ] ;
150
152
151
153
for ( var i = 0 ; i < buttons . length ; ++ i ) {
152
154
var item = buttons [ i ] ;
153
- var li = $ ( '<li><a href="#" onclick="return false;">' + item [ 0 ] + '</a></li>' ) ;
155
+ var li = $ ( '<li class="col-sm-1" ><a href="#" onclick="return false;">' + item [ 0 ] + '</a></li>' ) ;
154
156
li . appendTo ( self . element ) ;
155
157
li . click ( self . itemClicked ) ;
156
158
li [ 0 ] . callback = item [ 1 ] ;
157
159
}
160
+ var li = $ ( '<li class="col-sm-' + ( 12 - buttons . length ) + '"> </li>' ) ;
161
+ li . appendTo ( self . element ) ;
158
162
} ;
159
163
160
164
/*
@@ -195,8 +199,13 @@ webui.SideBarView = function(mainView) {
195
199
'<div class="modal-dialog modal-sm">' +
196
200
'<div class="modal-content">' +
197
201
'<div class="modal-header">' +
198
- '<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>' +
199
202
'<h4 class="modal-title">' + title + '</h4>' +
203
+ '<button type="button" class="btn -btn-default close" data-bs-dismiss="modal">' +
204
+ '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">' +
205
+ '<path fill-rule="evenodd" clip-rule="evenodd" d="M13.854 2.146a.5.5 0 0 1 0 .708l-11 11a.5.5 0 0 1-.708-.708l11-11a.5.5 0 0 1 .708 0Z" fill="#000"/>' +
206
+ '<path fill-rule="evenodd" clip-rule="evenodd" d="M2.146 2.146a.5.5 0 0 0 0 .708l11 11a.5.5 0 0 0 .708-.708l-11-11a.5.5 0 0 0-.708 0Z" fill="#000"/>' +
207
+ '</svg>' +
208
+ '</button>' +
200
209
'</div>' +
201
210
'<div class="modal-body"><div class="list-group"></div></div>' +
202
211
'</div>' +
@@ -290,7 +299,7 @@ webui.SideBarView = function(mainView) {
290
299
var li = $ ( '<li class="sidebar-more">More ...</li>' ) . appendTo ( ul ) ;
291
300
var popup = self . addPopup ( section , title , id + "-popup" , refs ) ;
292
301
li . click ( function ( ) {
293
- $ ( popup ) . modal ( ) ;
302
+ $ ( popup ) . modal ( 'show' ) ;
294
303
} ) ;
295
304
}
296
305
} else {
@@ -301,7 +310,7 @@ webui.SideBarView = function(mainView) {
301
310
302
311
self . mainView = mainView ;
303
312
self . element = $ ( '<div id="sidebar">' +
304
- '<a href="#" data-toggle="modal" data-target="#help-modal"><img id="sidebar-logo" src="img/git-logo.png"></a>' +
313
+ '<a href="#" data-bs- toggle="modal" data-bs -target="#help-modal"><img id="sidebar-logo" src="img/git-logo.png"></a>' +
305
314
'<div id="sidebar-content">' +
306
315
'<section id="sidebar-workspace">' +
307
316
'<h4>Workspace</h4>' +
@@ -981,8 +990,8 @@ webui.DiffView = function(sideBySide, hunkSelectionAllowed, parent) {
981
990
if ( ! ( parent instanceof webui . CommitExplorerView ) ) {
982
991
html +=
983
992
'<div class="panel-heading btn-toolbar" role="toolbar">' +
984
- '<button type="button" class="btn btn-sm btn-default diff-ignore-whitespace" data-toggle="button">Ignore Whitespace</button>' +
985
- '<button type="button" class="btn btn-sm btn-default diff-context-all" data-toggle="button">Complete file</button>' +
993
+ '<button type="button" class="btn btn-sm btn-default diff-ignore-whitespace" data-bs- toggle="button">Ignore Whitespace</button>' +
994
+ '<button type="button" class="btn btn-sm btn-default diff-context-all" data-bs- toggle="button">Complete file</button>' +
986
995
'<div class="btn-group btn-group-sm">' +
987
996
'<span></span> ' +
988
997
'<button type="button" class="btn btn-default diff-context-remove">-</button>' +
@@ -1672,7 +1681,7 @@ webui.CommitMessageView = function(workspaceView) {
1672
1681
'<div class="panel-heading">' +
1673
1682
'<h5>Message</h5>' +
1674
1683
'<div class="btn-group btn-group-sm">' +
1675
- '<button type="button" class="btn btn-default commit-message-amend" data-toggle="button">Amend</button>' +
1684
+ '<button type="button" class="btn btn-default commit-message-amend" data-bs- toggle="button">Amend</button>' +
1676
1685
'<button type="button" class="btn btn-default commit-message-commit">Commit</button>' +
1677
1686
'</div>' +
1678
1687
'</div>' +
0 commit comments