Fossil

Check-in [d145d92d14]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Drop a redundant check.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | timeline-keyboard-navigation
Files: files | file ages | folders
SHA3-256: d145d92d14bea3a100da80f2e828e85131abd215423a97c6046d7ce51122bdf8
User & Date: florian 2022-07-29 10:27:00.000
Context
2022-07-29
11:37
Don't use magic numbers, and also improve readability for adjacent lines. ... (check-in: 57baac30d6 user: florian tags: timeline-keyboard-navigation)
10:27
Drop a redundant check. ... (check-in: d145d92d14 user: florian tags: timeline-keyboard-navigation)
10:26
Fix dynamic style assignment. ... (check-in: bb59cc264e user: florian tags: timeline-keyboard-navigation)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/graph.js.
945
946
947
948
949
950
951
952
953
954
955
956
957
      var id;
      var kf = document.getElementById('timeline-kbfocus');
      if( kf ) id = kf.value;
      if( !id || !focusVisualize(id,false) ){
        if( document.cookie.match(/fossil_timeline_kbnav=1/) ){
          id = focusDefaultId();
          kf.value = id;
          if( id ) focusVisualize(id,false);
        }
      }
    },false);
  },false);
}());







|





945
946
947
948
949
950
951
952
953
954
955
956
957
      var id;
      var kf = document.getElementById('timeline-kbfocus');
      if( kf ) id = kf.value;
      if( !id || !focusVisualize(id,false) ){
        if( document.cookie.match(/fossil_timeline_kbnav=1/) ){
          id = focusDefaultId();
          kf.value = id;
          focusVisualize(id,false);
        }
      }
    },false);
  },false);
}());