Skip to content

Commit 5ed8ffc

Browse files
committed
citation tab is first
1 parent b83ecfc commit 5ed8ffc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

public/javascripts/usage_bar_chart.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -267,16 +267,16 @@
267267
function tabs_interaction(){
268268
var tab = window.location.hash.substring(1)
269269

270-
271270
if(tab){
272271
$('#'+tab).tab("show")
273-
}else if(gon.chart_views){
274-
$('#views-tab').tab("show")
275272
}else if(gon.chart_citations){
276273
$('#citations-tab').tab("show")
277274
$("#citationsList-tab").tab('show')
275+
}else if(gon.chart_views){
276+
$('#views-tab').tab("show")
278277
}
279278

279+
280280
$('.usage-counts.usage-views').on('click', function (e) {
281281
e.preventDefault()
282282
$("#views-tab").tab('show')

0 commit comments

Comments
 (0)