Sha256: 760ba67642795d669c51868059a0fbfc17474d4d737fe7178d2e8aab74cf8fc5

Contents?: true

Size: 1.92 KB

Versions: 55

Compression:

Stored size: 1.92 KB

Contents

jQuery(document).ajaxSend(function(a,b,c){add_headers(b);if(!(c.type.toUpperCase()=="GET"||typeof AUTH_TOKEN=="undefined")){c.data=c.data||"";if(typeof AUTH_TOKEN!="undefined")c.data+=(c.data?"&":"")+"authenticity_token="+encodeURIComponent(AUTH_TOKEN)}});function apply_ajax_forms(){jQuery("form.ajax").ajaxForm({dataType:"script",beforeSend:add_headers});jQuery("form.ajax").append('<input type="hidden" name="format" value="js" />')}
function add_headers(a){a.setRequestHeader("Accept","text/javascript");a.setRequestHeader("X-Requested-With","XMLHttpRequest")}
jQuery(document).ready(function(){jQuery("a.ajax-delete").live("click",function(){var a=jQuery(this).attr("title"),b=true;if(a.length>0)b=confirm(a);b&&jQuery.post(this.href,{_method:"delete",format:"js"},null,"script");return false});jQuery("a.ajax-update").live("click",function(){jQuery.post(this.href,{_method:"put",format:"js"},null,"script");return false});jQuery(".submit-form").click(function(){jQuery(this).parent("form").submit()});apply_ajax_forms();jQuery("a.dialog-pop").live("click",function(){var a=
jQuery('<div class="dialog"></div>').appendTo("body");a.dialog({modal:true,autoOpen:false,width:"auto",title:jQuery(this).attr("title")});a.load(jQuery(this).attr("href"),"",function(){a.dialog("open");apply_ajax_forms()});return false});jQuery(".submit-delete").live("click",function(){jQuery(this).parents(".delete-container").fadeOut();var a=jQuery(this).parents("form");jQuery.post(a.attr("action")+".json",a.serialize(),function(b){b=eval("("+b+")");b.success||jQuery.jGrowl.info(b.message)});return false});
jQuery(".submit-delete-js").live("click",function(){jQuery(this).parents(".delete-container").fadeOut();var a=jQuery(this).parents("form");jQuery.post(a.attr("action")+".js",a.serialize(),function(){});return false});jQuery(document).ready(function(){jQuery(".waiting").hide();jQuery(".wait-button").click(function(){jQuery(".waiting").show();jQuery(this).hide()})})});

Version data entries

55 entries across 49 versions & 10 rubygems

Version Path
muck-auth-3.5.2 test/public/javascripts/muck.js
muck-engine-3.2.10 public/javascripts/muck.js
muck-engine-3.2.9 public/javascripts/muck.js
muck-engine-3.2.8 public/javascripts/muck.js
muck-engine-3.2.7 public/javascripts/muck.js
muck-engine-3.2.6 public/javascripts/muck.js
muck-engine-3.2.5 public/javascripts/muck.js
muck-engine-3.2.4 public/javascripts/muck.js
muck-engine-3.2.3 public/javascripts/muck.js
muck-engine-3.2.1 public/javascripts/muck.js
muck-engine-3.2.0 public/javascripts/muck.js
muck-engine-3.1.0 public/javascripts/muck.js
muck-users-3.1.0 test/public/javascripts/muck.js
muck-users-3.0.9 test/rails_test/public/javascripts/muck.js
muck-users-3.0.8 test/rails_test/public/javascripts/muck.js
muck-engine-3.0.8 test/rails_test/public/javascripts/muck.js
muck-engine-3.0.8 public/javascripts/muck.js
muck-users-3.0.7 test/rails_test/public/javascripts/muck.js
muck-engine-3.0.7 test/rails_test/public/javascripts/muck.js
muck-engine-3.0.7 public/javascripts/muck.js