1. 15 Nov, 2016 2 commits
    • Yar's avatar
      Unify anchor link format for MR diff files !7298 · 8782bb96
      Yar authored
      Right now, the following naming scheme for diff files is used: diff-1, diff-2, ... and also we have "internal" format which is file-path-HASH, where HASH is sha1 of file path.
      Besides, we have HASH_lineA_lineB format to link exact line number in MR diff. It makes sence to unify the way we link diff from outside, while leave "file-path-HASH" format for internal (js) usage.
      Changes in this commit  allow to link diff just by HASH, if we don't want specify exact lines, also it changes "file-path-HASH" and "diff-NUMBER" links in code to this unified format.
      
      Inspired by #24010 and !7298
      8782bb96
    • Yar's avatar
      Fix double event and xhr request call on MR page !7298 · 5b876592
      Yar authored
      On page merge_requests/n/diffs and merge_requests/n/commits 'shown.bs.tab' event triggers twice when tab is loading  which lead to  extra ajax request for data each time.
      This commit prevent this event from triggering twice when tab is loading.
      5b876592
  2. 11 Nov, 2016 6 commits
  3. 10 Nov, 2016 32 commits