template.js.struts2.jquery.struts2.min.js Maven / Gradle / Ivy
/*
jquery.struts2.js
Integration of jquery and jquery ui with struts 2
for ajax, widget and interactions support in struts 2
Requires use of jQuery.
Tested with jQuery 2.1 and jQuery UI 1.11
Copyright (c) 2008 Eric Chijioke (obinna a-t g mail dot c o m)
Copyright (c) 2010 - 2015 Johannes Geppert http://www.jgeppert.com
Dual licensed under the MIT and GPL licenses:
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html
*/
'use strict';(function(f,v){f.struts2_jquery={debug:!1,debugPrefix:"[struts2_jquery] ",ajaxhistory:!1,loadAtOnce:!1,local:"en",gridLocal:"en",timeLocal:"en",datatablesLocal:"en",minSuffix:".min",historyelements:{},forms:{},scriptCache:{},styleCache:{},defaults:{indicator:"",loadingText:null,errorText:null},handler:{load:"_s2j_container_load",form:"_s2j_form_submit",effect:"_s2j_effects"},currentXhr:{},log:function(b){this.debug&&(b=this.debugPrefix+b,window.console&&window.console.log?window.console.log(b):
window.opera&&window.opera.postError&&window.opera.postError(b))},escId:function(b){return"#"+b.replace(/(:|\.)/g,"\\$1")},addParam:function(b,a){return 0b.readyState&&
b.abort()},validateForm:function(b,a){var d=this,e=!0,c={};d.loadAtOnce||d.require("js/plugins/jquery.form"+d.minSuffix+".js");c.type="POST";c.data={"struts.enableJSONValidation":!0,"struts.validateOnly":!0};c.url=a.href&&"#"!==a.href?a.href:b[0].action;a.hrefparameter&&(c.url=c.url+"?"+a.hrefparameter);c.cache=!1;c.async=!1;c.complete=function(c,h){var k=f(b[0]),l=c.responseText;f.isFunction(a.validateFunction)?l&&10
© 2015 - 2024 Weber Informatics LLC | Privacy Policy