HEX
Server: Apache
System: Linux webm020.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: thanexcelr (29537)
PHP: 7.3.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/thanexcelr/www/wp-content/plugins/2j-slideshow/js/admin/editor-button.js
/*  
 * 2J SlideShow		http://2joomla.net/wordpress
 * Version:           1.3.12 - 85273
 * Author:            2J Team (c)
 * Author URI:        http://2joomla.net/wordpress
 * License:           GPL-2.0+
 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
 * Date:              Sat, 28 Jan 2017 14:08:08 GMT
 */

jQuery(function(){
	var twojSlideshowDialog = jQuery("#twoj-slideshow").appendTo("body");
	twojSlideshowDialog.dialog({
		'dialogClass' : 'wp-dialog',
		'title': twoj_slideshow_trans.twojSlideshowTitle,
		'modal' : true,
		'autoOpen' : false,
		'width': 'auto',
	    'maxWidth': 700,
	    'height': 'auto',
	    'fluid': true, 
	    'resizable': false,
		'responsive': true,
		'draggable': false,
		'closeOnEscape' : true,
		'buttons' : [{
				'text' : twoj_slideshow_trans.closeButton,
				'class' : 'button-default',
				'click' : function() { jQuery(this).dialog('close'); }
		},{
				'text' : twoj_slideshow_trans.insertButton,
				'class' : 'button-primary',
				'click' : function() { 
					var slideshowId = jQuery('#page_id', twojSlideshowDialog).val();
					window.parent.send_to_editor('[2jslideshow id="'+slideshowId+'"]');
        			window.parent.tb_remove();
					jQuery(this).dialog('close'); 
				}
		}],
		open: function( event, ui ) {}
	});
	jQuery(document).on( 'click', '#insert-2j-slideshow', function(event) { 
		twojSlideshowDialog.dialog('open'); 
		return false; 
	});
});