Save progress
This commit is contained in:
@@ -55,15 +55,16 @@
|
||||
setTranslations()
|
||||
|
||||
@setTranslations = (selector) ->
|
||||
list = $("#top-navigation-list")
|
||||
list.find(".locale").show()
|
||||
list.find(".locale-" + $locale).hide()
|
||||
#list = $("#top-navigation-list")
|
||||
selector = $( selector || document)
|
||||
selector.find(".locale-select").show()
|
||||
selector.find(".locale-select-" + $locale).hide()
|
||||
moment.lang $locale
|
||||
if selector
|
||||
$(selector).find("[data-t]").each ->
|
||||
selector.find("[data-t]").each ->
|
||||
$(this).html t($(this).data("t"), $(this).data("tAttributes"))
|
||||
|
||||
$(selector).find("*[data-time]").each ->
|
||||
selector.find("*[data-time]").each ->
|
||||
$(this).text moment($(this).data("time")).format($(this).data("timeFormat") or "dd D MMM HH:MM")
|
||||
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user