File "settings.js"

Full Path: /www/wwwroot/shphe-en.com/wp-content/plugins/bb-plugin/modules/cta/js/settings.js
File size: 539 bytes
MIME-type: --
Charset: utf-8

(function($){

	FLBuilder.registerModuleHelper('cta', {

		rules: {
			title: {
				required: true
			},
			btn_text: {
				required: true
			}
		},

		init: function()
		{
			$( 'input[name=btn_bg_color]' ).on( 'change', this._bgColorChange );
			
			this._bgColorChange();
		},

		_bgColorChange: function()
		{
			var bgColor = $( 'input[name=btn_bg_color]' ),
				style   = $( '#fl-builder-settings-section-btn_style' );
			

			if ( '' == bgColor.val() ) {
				style.hide();
			}
			else {
				style.show();
			}
		}
	});

})(jQuery);