| Server IP : 46.105.57.169 / Your IP : 216.73.216.144 Web Server : Apache System : Linux webd003.cluster120.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : maitricfuz ( 93378) PHP Version : 8.4.10 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/maitricfuz/www/new-saint-martin/media/com_convertforms/js/ |
Upload File : |
jQuery(function(s){function l(e){s(".cf-service-fields .alert").remove(),s(".cf-service-fields .well-desc").after('<div class="alert alert-error">Error: '+e+"</div>")}s(".viewLists").click(function(){var a=s(this),e=s(this).next(),t=s("#jform_service");if(formdata=s(".cf-service-fields input").add(t),!e.is(":visible")){for(var i,r=formdata.length-1;0<=r;r--)if(s(formdata[r]).prop("required")&&!s(formdata[r]).val()&&"jform_list"!=s(formdata[r]).attr("id"))return i=s(formdata[r]).attr("id"),void l("Please enter a valid "+s("label[for="+i+"]").text().trim());return token=s("#adminForm input[name=task]").prev().attr("name"),s.ajax({type:"POST",url:"index.php?option=com_ajax&format=raw&plugin=ConvertForms&task=lists&"+token+"=1",headers:{"X-CSRF-Token":token},data:formdata.serialize(),beforeSend:function(){s(".cf-service-fields .alert").remove(),a.addClass("cf-working disabled")},complete:function(){a.removeClass("cf-working disabled")},success:function(t){if(t){t=s("<div/>").html(t).text();try{t=s.parseJSON(t)}catch(e){l(e+"\n"+t)}var e,i;t.error?l(t.error):(e=a,t=t.lists,i="",s.each(t,function(e,t){i=i+'<li><a href="#">'+t.name+' <span class="id">'+t.id+"</span></a></li>"}),($list=e.next()).html(i).show(),(value=e.closest("div").find("input").val())&&$list.find('span:contains("'+value+'")').closest("li").addClass("active"))}else l("Can't get lists")}}),!1}e.hide()}),s(document).on("click",".cflists a",function(){var e;return e=s(this),s(".cflists li").removeClass("active"),listID=e.find(".id").text(),e.closest("div").find("input").val(listID),e.parent().addClass("active"),e.closest("ul").hide(),!1})});