Sha256: b9f2e86252af1798f0c81b62aa31a1c35b963935f1fd580d0201dc3bd52243ef

Contents?: true

Size: 590 Bytes

Versions: 17

Compression:

Stored size: 590 Bytes

Contents

# Global functions referenced from HTML
@showWaiting = (element_id, text, centered) ->
  element = $(element_id)
  if element && centered
    element.html('<br /><center><img width=\"13\" height=\"13\" src=\"' + root_url + 'assets/ajax-loader.gif\" align=\"absmiddle\" alt=\"...\" />' + text + '</center><br />')
  else if element
    element.html('<img width=\"13\" height=\"13\" src=\"' + root_url + 'assets/ajax-loader.gif\" align=\"absmiddle\" alt=\"...\" />' + text)

@showMessage = (elements) ->
  $.each(elements, (index, value) ->
    element = $(value)
    element.fadeIn(2000)
  )

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
contour-1.0.0.beta app/assets/javascripts/contour/global.js.coffee
contour-0.10.2 app/assets/javascripts/contour/global.js.coffee
contour-0.10.1 app/assets/javascripts/contour/global.js.coffee
contour-0.10.0 app/assets/javascripts/contour/global.js.coffee
contour-0.9.4 app/assets/javascripts/contour/global.js.coffee
contour-0.9.3 app/assets/javascripts/contour/global.js.coffee
contour-0.9.2 app/assets/javascripts/contour/global.js.coffee
contour-0.9.1 app/assets/javascripts/contour/global.js.coffee
contour-0.9.0 app/assets/javascripts/contour/global.js.coffee
contour-0.8.4 app/assets/javascripts/contour/global.js.coffee
contour-0.8.3 app/assets/javascripts/contour/global.js.coffee
contour-0.8.2 app/assets/javascripts/contour/global.js.coffee
contour-0.8.1 app/assets/javascripts/contour/global.js.coffee
contour-0.8.0 app/assets/javascripts/contour/global.js.coffee
contour-0.7.2 app/assets/javascripts/contour/global.js.coffee
contour-0.7.1 app/assets/javascripts/contour/global.js.coffee
contour-0.7.0 app/assets/javascripts/contour/global.js.coffee