Skip to content

Commit e0dac0e

Browse files
committed
Fix typo
1 parent 7e9e0e0 commit e0dac0e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4848
- Fixed sending OS error when git pull encounters error (#545)
4949
- Fixed suppressing editing of locked classes (#301)
5050
- Fixed importing CSP files (#251)
51+
- Fix creating new branch from Git Web UI (#591)
5152

5253
## [2.6.0] - 2024-10-07
5354

git-webui/release/share/git-webui/webui/js/git-webui.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ webui.SideBarView = function(mainView, noEventHandlers) {
578578
var refName = $("#confirm-branch-checkout pre")[0].innerHTML;
579579

580580
$.post('create-branch', {branch: refName}, function() {
581-
this.updateSideBar();
581+
updateSideBar();
582582
removeModal("#confirm-branch-checkout");
583583
});
584584
});
@@ -589,7 +589,7 @@ webui.SideBarView = function(mainView, noEventHandlers) {
589589
}
590590
else{
591591
$.post('create-branch', {branch: refName}, function() {
592-
this.updateSideBar();
592+
updateSideBar();
593593
});
594594
}
595595
});

git-webui/src/share/git-webui/webui/js/git-webui.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ webui.SideBarView = function(mainView, noEventHandlers) {
578578
var refName = $("#confirm-branch-checkout pre")[0].innerHTML;
579579

580580
$.post('create-branch', {branch: refName}, function() {
581-
this.updateSideBar();
581+
updateSideBar();
582582
removeModal("#confirm-branch-checkout");
583583
});
584584
});
@@ -589,7 +589,7 @@ webui.SideBarView = function(mainView, noEventHandlers) {
589589
}
590590
else{
591591
$.post('create-branch', {branch: refName}, function() {
592-
this.updateSideBar();
592+
updateSideBar();
593593
});
594594
}
595595
});

0 commit comments

Comments
 (0)