diff --git a/app/assets/javascripts/merge_request_tabs.js.coffee b/app/assets/javascripts/merge_request_tabs.js.coffee index e46fd98a05d63ceb70285ba0c0cadbe467dd23ab..4f2671447ef9d7caaad32fa14da445832b6f2c92 100644 --- a/app/assets/javascripts/merge_request_tabs.js.coffee +++ b/app/assets/javascripts/merge_request_tabs.js.coffee @@ -146,7 +146,7 @@ class @MergeRequestTabs success: (data) => document.querySelector("div#diffs").innerHTML = data.html $('div#diffs .js-syntax-highlight').syntaxHighlight() - @expandViewContainer() if @diffViewMode() is 'parallel' + @expandViewContainer() if @diffViewType() is 'parallel' @diffsLoaded = true @scrollToElement("#diffs") @@ -180,7 +180,7 @@ class @MergeRequestTabs $.ajax(options) # Returns diff view type - diffViewMode: -> + diffViewType: -> $('.diffs a[id$="-diff-btn"].active').data('view-type') expandViewContainer: ->