File: /var/www/ideasforum.kaunokolegija.lt/wp-content/plugins/robo-gallery/js/admin/info.js
/*
* Robo Gallery
* Version: 1.0
* By Robosoft
*
* Contact: https://robosoft.co/robogallery/
* Created: 2015
* Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
*
* Copyright (c) 2014-2019, Robosoft. All rights reserved.
* Available only in https://robosoft.co/robogallery/
*/
jQuery(function(){
var roboGalleryDialog = jQuery("#rbs_showInformation")/*.appendTo("body")*/;
var bodyClass = roboGalleryDialog.data("body");
if(bodyClass) jQuery("body").addClass(bodyClass);
roboGalleryDialog.dialog({
'dialogClass' : 'wp-dialog',
'title': roboGalleryDialog.data('title'),
'modal' : true,
'autoOpen' : roboGalleryDialog.data('open'),
'width': '450', // overcomes width:'auto' and maxWidth bug
'maxWidth': 450,
'height': 'auto',
'fluid': true,
'resizable': false,
'responsive': true,
'draggable': false,
'closeOnEscape' : true,
'buttons' : [{
'text' : roboGalleryDialog.data('close'),
'class' : 'button button-default rbs_dialog_close',
'click' : function() { jQuery(this).dialog('close'); }
},
{
'text' : roboGalleryDialog.data('info'),
'class' : 'button-primary rbs_getproversion_blank rbs_close_dialog',
'click' : function(){}
}
],
//open: function( event, ui ) {}
});
window['roboGalleryDialog'] = roboGalleryDialog;
jQuery(".ui-dialog-titlebar-close").addClass("ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only ui-dialog-titlebar-close");
jQuery('.rbs-block-pro').click( function( event ){
event.preventDefault();
roboGalleryDialog.dialog("open");
});
});