| Server IP : 172.67.134.116 / Your IP : 216.73.216.214 Web Server : Apache System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : nobi37te ( 1003) PHP Version : 8.2.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/nobi37te/public_html/wp-content/plugins/robin-image-optimizer/admin/assets/js/ |
Upload File : |
/**
* A set of tools for creating pop-ups. You can create a popup
* using a global method call.
*
* @version 1.0
*/
(function($) {
'use strict';
if( !$.wrio_modal ) {
$.wrio_modal = {};
}
$.wrio_modal = $.wrio_popup || {
showErrorModal: function(text) {
if( !text ) {
console.log('[Error]: Text required.');
return;
}
swal({
title: 'Error',
text: text,
type: 'error',
customClass: 'wrio-modal wrio-modal-error',
width: 500,
confirmButtonText: 'OK',
});
},
showWarningModal: function(text, callback) {
if( !text ) {
console.log('[Error]: Text required.');
return;
}
swal({
title: 'Warning',
text: text,
type: 'warning',
customClass: 'wrio-modal wrio-modal-warning',
width: 500,
showCancelButton: true,
showCloseButton: true,
confirmButtonText: 'OK',
}).then(function(result) {
if( callback ) {
callback();
}
}).catch(swal.noop);
},
};
})(jQuery);