hello
Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : chryzalihi ( 621211) PHP Version : 8.3.31 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/chryzalihi/www/wp-content/themes/bloglo/inc/customizer/controls/sortable/ |
!(function ($) {
"use strict";
wp.customize.controlConstructor["bloglo-sortable"] =
wp.customize.Control.extend({
ready: function () {
var control = this;
control.params.sortable &&
control.container.find("ul").sortable({
items: "> .bloglo-sortable-item",
intersect: "pointer",
axis: "y",
update: function () {
control.update();
},
}),
control.container.on("click", ".dashicons-visibility", function () {
$(this).closest(".bloglo-sortable-item").toggleClass("invisible"),
control.update();
});
},
update: function () {
var $item,
items = this.container.find(".bloglo-sortable-item"),
new_val = {};
_.isEmpty(items) ||
_.each(items, function (item) {
($item = $(item)),
(new_val[$item.data("value")] = !$item.hasClass("invisible"));
}),
this.setting.set({}),
this.setting.set(new_val);
},
});
})(jQuery);