diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-12-14 15:18:46 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-12-14 15:18:46 +0000 |
commit | 4bdfb0391a578847fde5589eb44ac6737c9e4b64 (patch) | |
tree | 4af12a6ef4f7ead85c2d80a48687f42c492564fa /app/assets/javascripts/diff.js.es6 | |
parent | 161d7c02d4ff49d6d91b982faee61b5de00d2631 (diff) | |
parent | b70b962892b2428557d95a9639fbcead4fe546fd (diff) | |
download | gitlab-ce-4bdfb0391a578847fde5589eb44ac6737c9e4b64.tar.gz |
Merge branch 'master' into 'dz-remove-namespaces-path-uniq'
Merge Request - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8013
# Conflicts:
# db/schema.rb
Diffstat (limited to 'app/assets/javascripts/diff.js.es6')
-rw-r--r-- | app/assets/javascripts/diff.js.es6 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/diff.js.es6 b/app/assets/javascripts/diff.js.es6 index ecf9d1de81c..9cf33e62958 100644 --- a/app/assets/javascripts/diff.js.es6 +++ b/app/assets/javascripts/diff.js.es6 @@ -5,8 +5,11 @@ class Diff { constructor() { - $('.files .diff-file').singleFileDiff(); - $('.files .diff-file').filesCommentButton(); + const $diffFile = $('.files .diff-file'); + $diffFile.singleFileDiff(); + $diffFile.filesCommentButton(); + + $diffFile.each((index, file) => new gl.ImageFile(file)); if (this.diffViewType() === 'parallel') { $('.content-wrapper .container-fluid').removeClass('container-limited'); |