| Server IP : 198.38.94.13 / Your IP : 216.73.217.33 Web Server : Apache System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : revivere ( 1140) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/revivere/www/wp-content/plugins/modula-best-grid-gallery/assets/js/admin/ |
Upload File : |
(function ($) {
function activatePlugin(url) {
$.ajax({
async: true,
type: 'GET',
dataType: 'html',
url: url,
success: function () {
location.reload();
},
});
}
// Install plugins actions
$('.wpchill_install_partener_addon').on('click', (event) => {
event.preventDefault();
var current = $(event.currentTarget),
plugin_slug = current.data('slug'),
plugin_action = current.data('action'),
activate_url = current.data('activation_url');
if ('install' === plugin_action) {
current.html(dashboardStrings.installing_plugin);
let args = {
slug: plugin_slug,
success: (response) => {
current.html(dashboardStrings.activating_plugin);
activatePlugin(response.activateUrl);
},
error: (response) => {
current.removeClass('updating-message');
},
};
wp.updates.installPlugin(args);
} else if ('activate' === plugin_action) {
current.html(dashboardStrings.activating_plugin);
activatePlugin(activate_url);
}
});
/* When document is ready, do */
$(document).ready(function ($) {});
})(jQuery);