| Server IP : 82.208.35.60 / Your IP : 216.73.216.236 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/d2m/sofident_cz/wp-content/plugins/sitepress-multilingual-cms/res/js/ |
Upload File : |
/*jshint browser:true, devel:true */
/*global jQuery */
var WPML_core = WPML_core || {};
WPML_core.widgets = (function( $ ) {
"use strict";
var init = function() {
$(document).on('widget-added', function (e, widget) {
var button = widget.find('.js-wpml-ls-slot-management-link');
if (button.length > 0) {
var sidebar_slug = widget.closest('.widgets-sortables').attr('id'),
link = button.attr('href');
if ('#sidebars/' === link.slice(-10)) {
button.attr('href', link + sidebar_slug);
}
}
});
};
return {
'init': init
};
})( jQuery );
jQuery(document).ready(function () {
"use strict";
WPML_core.widgets.init();
});