uawdijnntqw1x1x1
IP : 3.144.147.211
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
www
/
wp-content
/
plugins
/
meta-box
/
js
/
validation
/
..
/
icon.js
/
/
/** * Link: https://stackoverflow.com/questions/37386293/how-to-add-icon-in-select2 */ ( function ( $, rwmb ) { 'use strict'; const template = option => { if ( option.text.includes( '<svg' ) ) { const title = option.text.replace( /<svg.*?>.*?<\/svg>/, '' ); return $( `<span class="rwmb-icon-select" title="${ title }">${ option.text }</span>` ); } return option.id ? $( `<span class="rwmb-icon-select" title=${ option.text }><i class="${ option.id }"></i>${ option.text }</span>` ) : option.text; }; function initIconField( event, options ) { $( this ).select2( { ...options, templateResult: template, templateSelection: template, } ); } rwmb.$document .on( 'init_icon_field', '.rwmb-icon', initIconField ); } )( jQuery, rwmb );
/home/batcwwjx/www/wp-content/plugins/meta-box/js/validation/../icon.js