nutools/lib/nulib/templates/webpyapp/static/bootstrap/jquery-plugins/wosubmit/jquery.wosubmit.min.js

1 line
330 B
JavaScript

(function(a){a.wosubmit=function(d){var c=a(d).first();var b;if(c.is("form")){b=c}else{b=a(c[0].form)}if(!b.length){return false}var e;if(c.is(":submit")){e=c}else{e=b.find(":submit").first()}if(e.length){b.prepend('<input type="hidden" name="'+e.attr("name")+'" value="'+e.attr("value")+'" />')}b.submit();return true}})(jQuery);