Save progress

This commit is contained in:
2014-03-30 15:55:22 +02:00
parent e179f6e582
commit 013a41b9f6
71 changed files with 1699 additions and 107 deletions
@@ -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