Sha256: 276ba7f7c2ef87adc3c6641877ba27de1b45556e58f4268ee428405b1fb8fb0c

Contents?: true

Size: 406 Bytes

Versions: 1

Compression:

Stored size: 406 Bytes

Contents

$.ajaxSetup({
 dataType: "html"
});
$(document).ready(function (){
  $("a[data-remote]").live('ajax:before', function() {
    $($(this).attr('rel')).addClass('ajax-loader');
  });

  $("a[data-remote]").live('ajax:complete', function(status, xhr) {
    $($(this).attr('rel')).removeClass('ajax-loader');
    $($(this).attr('rel')).html(xhr.responseText);
    bind_functions($(this).attr('rel'));
  });
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sbdevcore-0.2.0 app/assets/javascripts/sbdev-ajax.js