File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
/* Commit: Interface for selecting, staging, discarding, and unstaging
2
2
hunks, individual lines, or ranges of lines. */
3
3
4
- var contextLines = 5 ;
4
+ var contextLines = 0 ;
5
5
6
6
var showNewFile = function ( file )
7
7
{
@@ -39,6 +39,7 @@ var setTitle = function(status) {
39
39
var displayContext = function ( ) {
40
40
$ ( "contextSize" ) . style . display = "" ;
41
41
$ ( "contextTitle" ) . style . display = "" ;
42
+ contextLines = $ ( "contextSize" ) . value ;
42
43
}
43
44
44
45
var showFileChanges = function ( file , cached ) {
@@ -51,7 +52,8 @@ var showFileChanges = function(file, cached) {
51
52
hideState ( ) ;
52
53
53
54
$ ( "contextSize" ) . oninput = function ( element ) {
54
- contextSize = $ ( "contextSize" ) . value ;
55
+ contextLines = $ ( "contextSize" ) . value ;
56
+ Controller . refresh ( ) ;
55
57
}
56
58
57
59
if ( file . status == 0 ) // New file?
You can’t perform that action at this time.
0 commit comments