BigW Consortium Gitlab

Commit 9a60bd54 by Alfredo Sumaran

Change method name for consistency

parent 27a0310f
......@@ -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: ->
......
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