You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
626 B
JavaScript

window.sel2 = require('select2/dist/js/select2.min');
jQuery(function () {
// document.body.style.zoom = (window.innerWidth / window.outerWidth)
try {
// window.sel2(jQuery);
$('.sel2').select2();
} catch (e) {
console.log('sel2 error', e.message);
}
group = $(".srt").sortable({
group: 'sorting',
onDrop: function ($item, container, _super) {
var data = group.sortable("serialize").get()[0];
var jsonString = JSON.stringify(data);
$("#sort-result").val(jsonString);
_super($item, container);
}
});
});