File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
release/share/git-webui/webui/js
src/share/git-webui/webui/js Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2423,17 +2423,17 @@ webui.NewChangedFilesView = function(workspaceView) {
2423
2423
}
2424
2424
2425
2425
self . unhighlightPrevious = function ( ) {
2426
- $ ( '[data-filename="' + fileToDiff + '"]' ) . removeClass ( "diffed-file" ) ;
2426
+ $ ( '[data-filename="' + self . fileToDiff + '"]' ) . removeClass ( "diffed-file" ) ;
2427
2427
}
2428
2428
2429
2429
self . refreshDiff = function ( element ) {
2430
- var fileToDiff = $ ( element ) . attr ( "data-filename" ) ;
2430
+ self . fileToDiff = $ ( element ) . attr ( "data-filename" ) ;
2431
2431
var indexStatus = $ ( element ) . attr ( "data-index-status" ) ;
2432
2432
var gitOpts = [ ] ;
2433
2433
if ( indexStatus != " " ) {
2434
2434
gitOpts . push ( "--cached" ) ;
2435
2435
}
2436
- workspaceView . diffView . update ( "diff" , gitOpts , fileToDiff , "stage" ) ;
2436
+ workspaceView . diffView . update ( "diff" , gitOpts , self . fileToDiff , "stage" ) ;
2437
2437
} ;
2438
2438
2439
2439
self . stash = function ( ) {
Original file line number Diff line number Diff line change @@ -2423,17 +2423,17 @@ webui.NewChangedFilesView = function(workspaceView) {
2423
2423
}
2424
2424
2425
2425
self . unhighlightPrevious = function ( ) {
2426
- $ ( '[data-filename="' + fileToDiff + '"]' ) . removeClass ( "diffed-file" ) ;
2426
+ $ ( '[data-filename="' + self . fileToDiff + '"]' ) . removeClass ( "diffed-file" ) ;
2427
2427
}
2428
2428
2429
2429
self . refreshDiff = function ( element ) {
2430
- var fileToDiff = $ ( element ) . attr ( "data-filename" ) ;
2430
+ self . fileToDiff = $ ( element ) . attr ( "data-filename" ) ;
2431
2431
var indexStatus = $ ( element ) . attr ( "data-index-status" ) ;
2432
2432
var gitOpts = [ ] ;
2433
2433
if ( indexStatus != " " ) {
2434
2434
gitOpts . push ( "--cached" ) ;
2435
2435
}
2436
- workspaceView . diffView . update ( "diff" , gitOpts , fileToDiff , "stage" ) ;
2436
+ workspaceView . diffView . update ( "diff" , gitOpts , self . fileToDiff , "stage" ) ;
2437
2437
} ;
2438
2438
2439
2439
self . stash = function ( ) {
You can’t perform that action at this time.
0 commit comments