Server IP : 172.67.157.199 / Your IP : 18.217.49.233 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/chroot/var/www/wp-content/plugins/appointment-hour-booking/js/fields-admin/ |
Upload File : |
$.fbuilder.typeList.push( { id:"ftext", name:"Single Line", control_category:1 } ); $.fbuilder.controls[ 'ftext' ]=function(){}; $.extend( $.fbuilder.controls[ 'ftext' ].prototype, $.fbuilder.controls[ 'ffields' ].prototype, { title:"Untitled", ftype:"ftext", predefined:"", predefinedClick:false, required:false, size:"medium", minlength:"", maxlength:"", equalTo:"", display:function() { return '<div class="fields '+this.name+'" id="field'+this.form_identifier+'-'+this.index+'"><div class="arrow ui-icon ui-icon-play "></div><div title="Delete" class="remove ui-icon ui-icon-trash "></div><div title="Duplicate" class="copy ui-icon ui-icon-copy "></div><label>'+$.fbuilder.htmlEncode(this.title)+''+((this.required)?"*":"")+'</label><div class="dfield"><input class="field disabled '+this.size+'" type="text" value="'+$.fbuilder.htmlEncode(this.predefined)+'"/><span class="uh">'+$.fbuilder.htmlEncode(this.userhelp)+'</span></div><div class="clearer"></div></div>'; }, editItemEvents:function() { $("#sSize").bind("change", {obj: this}, function(e) { e.data.obj.size = $(this).val(); $.fbuilder.reloadItems(); }); $("#sMinlength").bind("change", {obj: this}, function(e) { e.data.obj.minlength = $(this).val(); $.fbuilder.reloadItems(); }); $("#sMaxlength").bind("change", {obj: this}, function(e) { e.data.obj.maxlength = $(this).val(); $.fbuilder.reloadItems(); }); $("#sEqualTo").bind("change", {obj: this}, function(e) { e.data.obj.equalTo = $(this).val(); $.fbuilder.reloadItems(); }); var items = this.fBuild.getItems(); $('.equalTo').each(function(){ var str = '<option value="" '+(("" == $(this).attr("dvalue"))?"selected":"")+'></option>'; for (var i=0;i<items.length;i++) { if ((items[i].ftype=="ftext" || items[i].ftype=="femail" || items[i].ftype=="fpassword") && (items[i].name != $(this).attr("dname"))) { str += '<option value="'+items[i].name+'" '+((items[i].name == $(this).attr("dvalue"))?"selected":"")+'>'+(items[i].title)+'</option>'; } } $(this).html(str); }); $.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this); }, showSpecialDataInstance: function() { return '<div class="column"><label>Min length/characters</label><br /><input name="sMinlength" id="sMinlength" value="'+this.minlength+'"></div><div class="column"><label>Max length/characters</label><br /><input name="sMaxlength" id="sMaxlength" value="'+this.maxlength+'"></div><div class="clearer"></div>'; } });