Other information | The following comment/snippet was identified via the pattern: \bSELECT\b var abp=abp||{};$(function(){abp.modals.claimTypeEdit=function(){var n=function(n){var s=n.getForm(),i;$("#NewClaimInputs input").keydown(function(n){if(n.keyCode==13)return $("#CreateNewClaimButton").click(),n.preventDefault(),!1});var r=function(n,t,i,r){var u="";return i&&(u='pattern="'+i+'"'),'<input type="text" class="form-control" id="'+n+"InputId_"+t+'" '+u+'name = "Claims['+r+"].Value["+t+']" aria-describedby="DeleteClaim" />'},u=function(n,t,i){return'<input type="number" class="form-control" id="'+n+"InputId_"+t+'" name="Claims['+i+"].Value["+t+']" aria-describedby="DeleteClaim" />'},f=function(n,t,i){return'<input type="date" class="form-control" id="'+n+"InputId_"+t+'" name="Claims['+i+"].Value["+t+']" aria-describedby="DeleteClaim" />'},e=function(n,t,i){return'<select id="'+n+"InputId_"+t+'" name="Claims['+i+"].Value["+t+']" class="form-control" aria-describedby="DeleteClaim"><option value="true" selected>true<\/option> <option value = "false" > false<\/option><\/select>'},o=function(n,t,i){var o=$("#Claims"+n+"Index").val(),h=$("#Claims"+o+"ValueType").val(),s="";return h==="String"?s=r(n,t,i,o):h==="Int"?s=u(n,t,o):h==="DateTime"?s=f(n,t,o):h==="Boolean"&&(s=e(n,t,o)),' <div id="'+n+"GroupId_"+t+'")" class="willBeHidden">\r\n <div class="input-group mb-3"> <div class="input-group-prepend"> <label class="input-group-text mw-100 fs-9" for="'+n+"InputId_"+t+'")">'+n+"<\/label>\r\n <\/div> "+s+'\r\n <div class="input-group-append">\r\n <button class="btn btn-danger deleteClaim" type="button" data="'+n+'" index="'+t+'">\r\n <i class="fa fa-trash"><\/i>\r\n <\/button>\r\n <\/div>\r\n <\/div>'},t=function(){$("div .newClaimValueInput").hide();var n=$("#NewClaimTypeSelect").val();$("#New"+n+"ClaimValueInput").parent().show()};$("#NewClaimTypeSelect").on("change",function(){t()});i=function(n,t){for(var r=n+"GroupId_",u=n+"InputId_",i="0",f;i<5e3;){if($("#"+r+i).length<1){$("#"+r+(i-1)).after(o(n,i,$("#Claims"+n+"Regex").val()));$("#"+u+i).val(t);return}if(f=$("#"+u+i).val(),f===undefined||f==""){$("#"+r+i).show();$("#"+u+i).val(t);return}i++}};$("#CreateNewClaimButton").click(function(){var n=$("#NewClaimTypeSelect").val(),t=$("#New"+n+"ClaimValueInput").val();t!==undefined&&t!=""&&($("#New"+n+"ClaimValueInput").val(""),i(n,t))});$(document).on("click",".deleteClaim",function(){var n=$(this).attr("data"),t=$(this).attr("index");$("#"+n+"GroupId_"+t).hide();$("#"+n+"InputId_"+t).val("")});$("div .willBeHidden").hide();t()};return{initModal:n}}}); |