diff options
author | Phil Hughes <me@iamphill.com> | 2016-08-01 10:06:31 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-08-01 10:06:31 +0100 |
commit | c51cbc1f2f3b590c4f38198dd886c4e372b4e476 (patch) | |
tree | 5c4b1e26c68b810fa46bf42d200bf2f30e452f10 /app/assets/javascripts/single_file_diff.js | |
parent | db8c4bce381a137d7afea99d39ffd4d5e70b5580 (diff) | |
download | gitlab-ce-c51cbc1f2f3b590c4f38198dd886c4e372b4e476.tar.gz |
Updated issues with jump tp button
Fixed styling bugs
Diffstat (limited to 'app/assets/javascripts/single_file_diff.js')
-rw-r--r-- | app/assets/javascripts/single_file_diff.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/single_file_diff.js b/app/assets/javascripts/single_file_diff.js index b9ae497b0e5..70e80b57f91 100644 --- a/app/assets/javascripts/single_file_diff.js +++ b/app/assets/javascripts/single_file_diff.js @@ -35,10 +35,12 @@ this.isOpen = !this.isOpen; if (!this.isOpen && !this.hasError) { this.content.hide(); - return this.collapsedContent.show(); + this.collapsedContent.show(); + compileVueComponentsForDiffNotes(); } else if (this.content) { this.collapsedContent.hide(); - return this.content.show(); + this.content.show(); + compileVueComponentsForDiffNotes(); } else { return this.getContentHTML(); } @@ -53,6 +55,7 @@ if (data.html) { _this.content = $(data.html); _this.content.syntaxHighlight(); + compileVueComponentsForDiffNotes(); } else { _this.hasError = true; _this.content = $(ERROR_HTML); |