Sha256: fd580fb3f37589fc32b06c42b44cbd23f818c80ca7344e24097c6b0ea6ec5328
Contents?: true
Size: 766 Bytes
Versions: 2
Compression:
Stored size: 766 Bytes
Contents
Volontariat.alert = (type, message) -> $('#alert_message').text message $('#alert').addClass "alert-#{type}" $("#alert").slideDown() setTimeout (-> $("#alert").slideUp(400, -> $('#alert').removeClass "alert-#{type}" ) ), 5000 Volontariat.reload_alert = (message) -> $('#reload_alert_message').text message $('#reload_alert').slideDown() Volontariat.t = (key) -> keyArray = key.split('.') text = Volontariat.translations[keyArray.shift()] unless text == undefined || typeof(text) == 'string' $.each keyArray, (index, value) -> if text[value] == undefined text = undefined return false text = text[value] return false if typeof(text) == 'string' text
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
voluntary-ember_js-0.1.0 | app/assets/javascripts/voluntary/ember_js/lib.js.coffee |
voluntary-ember_js-0.0.4 | app/assets/javascripts/voluntary/ember_js/lib.js.coffee |