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) {
24232423 }
24242424
24252425 self . unhighlightPrevious = function ( ) {
2426- $ ( '[data-filename="' + fileToDiff + '"]' ) . removeClass ( "diffed-file" ) ;
2426+ $ ( '[data-filename="' + self . fileToDiff + '"]' ) . removeClass ( "diffed-file" ) ;
24272427 }
24282428
24292429 self . refreshDiff = function ( element ) {
2430- var fileToDiff = $ ( element ) . attr ( "data-filename" ) ;
2430+ self . fileToDiff = $ ( element ) . attr ( "data-filename" ) ;
24312431 var indexStatus = $ ( element ) . attr ( "data-index-status" ) ;
24322432 var gitOpts = [ ] ;
24332433 if ( indexStatus != " " ) {
24342434 gitOpts . push ( "--cached" ) ;
24352435 }
2436- workspaceView . diffView . update ( "diff" , gitOpts , fileToDiff , "stage" ) ;
2436+ workspaceView . diffView . update ( "diff" , gitOpts , self . fileToDiff , "stage" ) ;
24372437 } ;
24382438
24392439 self . stash = function ( ) {
Original file line number Diff line number Diff line change @@ -2423,17 +2423,17 @@ webui.NewChangedFilesView = function(workspaceView) {
24232423 }
24242424
24252425 self . unhighlightPrevious = function ( ) {
2426- $ ( '[data-filename="' + fileToDiff + '"]' ) . removeClass ( "diffed-file" ) ;
2426+ $ ( '[data-filename="' + self . fileToDiff + '"]' ) . removeClass ( "diffed-file" ) ;
24272427 }
24282428
24292429 self . refreshDiff = function ( element ) {
2430- var fileToDiff = $ ( element ) . attr ( "data-filename" ) ;
2430+ self . fileToDiff = $ ( element ) . attr ( "data-filename" ) ;
24312431 var indexStatus = $ ( element ) . attr ( "data-index-status" ) ;
24322432 var gitOpts = [ ] ;
24332433 if ( indexStatus != " " ) {
24342434 gitOpts . push ( "--cached" ) ;
24352435 }
2436- workspaceView . diffView . update ( "diff" , gitOpts , fileToDiff , "stage" ) ;
2436+ workspaceView . diffView . update ( "diff" , gitOpts , self . fileToDiff , "stage" ) ;
24372437 } ;
24382438
24392439 self . stash = function ( ) {
You can’t perform that action at this time.
0 commit comments