Commit 9a60bd54 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Change method name for consistency

parent 27a0310f
...@@ -146,7 +146,7 @@ class @MergeRequestTabs ...@@ -146,7 +146,7 @@ class @MergeRequestTabs
success: (data) => success: (data) =>
document.querySelector("div#diffs").innerHTML = data.html document.querySelector("div#diffs").innerHTML = data.html
$('div#diffs .js-syntax-highlight').syntaxHighlight() $('div#diffs .js-syntax-highlight').syntaxHighlight()
@expandViewContainer() if @diffViewMode() is 'parallel' @expandViewContainer() if @diffViewType() is 'parallel'
@diffsLoaded = true @diffsLoaded = true
@scrollToElement("#diffs") @scrollToElement("#diffs")
...@@ -180,7 +180,7 @@ class @MergeRequestTabs ...@@ -180,7 +180,7 @@ class @MergeRequestTabs
$.ajax(options) $.ajax(options)
# Returns diff view type # Returns diff view type
diffViewMode: -> diffViewType: ->
$('.diffs a[id$="-diff-btn"].active').data('view-type') $('.diffs a[id$="-diff-btn"].active').data('view-type')
expandViewContainer: -> expandViewContainer: ->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment