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

1 line
330 B
JavaScript
Raw Normal View History

2017-07-17 21:59:20 +04:00
(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);