Skip to content

Commit

Permalink
Try using a simpler CSS class specification for indicating translatio…
Browse files Browse the repository at this point in the history
…n presence/absence
  • Loading branch information
ryanfb committed Feb 2, 2017
1 parent eb19ae2 commit ef1f0b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/cts-cite-driver.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ add_translations = (urn) ->
for matching_row in matching_rows
do (matching_row) ->
add_translation(matching_row)
else
$(urn_selector).addClass('no_translation')

# add UI for a single text URN, then add its translations afterward
set_cts_text = (urn, head, tlg) ->
Expand Down Expand Up @@ -99,12 +101,12 @@ show_untranslated = ->
$('#toggle_group button').removeClass('active')
$('#untranslated_button').addClass('active')
$('.has_translation').hide()
$('li:not(.has_translation)').show()
$('.no_translation').show()

show_translated = ->
$('#toggle_group button').removeClass('active')
$('#translated_button').addClass('active')
$('li:not(.has_translation)').hide()
$('.no_translation').hide()
$('.has_translation').show()

cite_collection_contains_urn = (urn) ->
Expand Down

0 comments on commit ef1f0b1

Please sign in to comment.