Sha256: afe525b18f4f029af5ad16e9646ff189da2af8447690e219dfc34c9186d3c6d4
Contents?: true
Size: 787 Bytes
Versions: 21
Compression:
Stored size: 787 Bytes
Contents
// Place your application-specific JavaScript functions and classes here // This file is automatically included by javascript_include_tag :defaults $(document).ready(function() { $("a.delete").click(function(e) { var original_url = $(this).attr('href') $.ajax({ url : original_url, type : 'DELETE', cache : false, success: function(data) { window.location = original_url.replace(/\/([\w_-]+)$/i, '') } }) return false; }) $("a.post").click(function(e) { var original_url = $(this).attr('href') $.ajax({ url : original_url, type : 'POST', dataType : 'xml', success: function(data) { window.location = original_url.replace(/\/([\w_-]+)$/i, '') } }) return false; }) })
Version data entries
21 entries across 21 versions & 3 rubygems