HEX
Server: LiteSpeed
System: Linux server107.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: iddeczhh (1154)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/iddeczhh/www/wp-content/plugins/the-post-grid/assets/js/tpg-el-editor.js
;(function ($) {

	// $(window).on('load', function(){
	$(document).ready(function () {

		elementor.hooks.addAction('panel/open_editor/widget', function (panel, model, view) {

			var bodyWrap = $('body');

			bodyWrap.on('click', '.the-post-grid-field-hide', function () {
				$(this).toggleClass('is-pro');
				$(this).find('label', 'input').on('click', function () {
					console.log($(this));
				})
				// return false;
			});

			bodyWrap.on('click', '.tpg-pro-field-select select', function () {
				var options = $(this).find('option').not('[value=default]');
				options.attr('disabled', true).css({backgroundColor: '#dfdfdf'})
			});

		})

	})

})(jQuery);