All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.web.js.sel_fields.js Maven / Gradle / Ivy

There is a newer version: 6.2.04
Show newest version
var dialog=top.dialog.get(window);if(dialog){dialog.call=function(b){var c={};$("#api_params,#relations_params").find("input:checked").not("input[name='select_all']").each(function(){var e=this.name.lastIndexOf(".");console.log(this.name);if(e>0){var d=this.name.substring(0,e),g=this.name.substring(e+1);var f=$("#"+d.replace(".","_")+"_alias").val();if(f){d=d+"->"+f}if(c[d]){c[d].push(g)}else{c[d]=[g]}}else{c[this.name]=this.name}});$("#api_params,#relations_params").find(":checkbox[name='select_all']").each(function(){if(!this.checked){return}var e=$(this).attr("group");if(e){var d=$("#"+e.replace(".","_")+"_alias").val();if(d){e=e+"->"+d}c[e]="*"}});var a=[];$.each(c,function(e,d){if(typeof(d)=="string"&&e==d){a.push(d)}else{var f=$("#_type_"+e).attr("_type");a.push(e+"["+(typeof(d)=="string"?d:d.join(","))+"]")}});if(!b){dialog.remove()}return a.join(",")}}$(function(){$("#api_info").hide()});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy