// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults


// Unobtrusive Ajax pagination
// http://pastie.org/186121

document.observe("dom:loaded", function() {
/*
  var container = $(document.body)

  if (container) {
    var img = new Image
    img.src = '/images/email.png'
    var spinner = null

    function Spinner() {
      spinner = new Element('img', { src: img.src, 'class': 'spinner' })
      return spinner
    }
    
    container.observe('click', function(e) {
      var el = e.element()
      if (el.match('#browser .pagination a')) {
        el.up('.pagination').insert(Spinner())
        new Ajax.Request(el.href, { method: 'get' })
        e.stop()
      }
    })
  }
*/
})