Sha256: b5d595e1f6866debcf2b06cddb0ae16cc80c8ff0d6daf6f85db109001d1a4139

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

#= require_tree ./mixins
#= require_tree ./adapters
#= require_tree ./serializers
#= require_tree ./models
#= require_tree ./controllers
#= require_tree ./views
#= require_tree ./templates
#= require_tree ./routes
#= require_tree ./helpers
#= require_tree ./components
#= require ./router
#= require_self

Ember.TextField.reopen attributeBindings: [
  'data-autocomplete', 'data-append-autocomplete', 'data-append-to'
]

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.0.3 app/assets/javascripts/voluntary/ember_js/app.js.coffee
voluntary-ember_js-0.0.2 app/assets/javascripts/voluntary/ember_js/app.js.coffee