39 lines
1.0 KiB
JavaScript
39 lines
1.0 KiB
JavaScript
$(function () {
|
|
|
|
// $('.panel-filecontents').css({
|
|
// "top": $('.panel.alert-success').offset().top + "px",
|
|
// "right": "10px",
|
|
// "position": "fixed",
|
|
// "z-index": "99999",
|
|
// "width": $('#module_content').width() + "px",
|
|
// "overflow": "hidden"
|
|
// });
|
|
//
|
|
// $('#module_content').css('margin-top', '200px');
|
|
//
|
|
// $('.panel-filecontents').draggable({handle: ".panel-heading"});
|
|
//
|
|
// $(".panel-filecontents").resizable({
|
|
// maxHeight: 600,
|
|
// maxWidth: 1000,
|
|
// minHeight: 200,
|
|
// minWidth: 150
|
|
// });
|
|
|
|
$(document).on('change', '#shop_selectable_product_activation', function () {
|
|
|
|
if ($(this).is(':checked')) {
|
|
var shops = [];
|
|
|
|
$('.shopsList input:checked').each(function () {
|
|
shops.push($(this).attr('name').replace('import_shop_', ''));
|
|
});
|
|
|
|
shops.reverse();
|
|
|
|
$('#shop_selectable_product_activation_shops').val(shops.join(','));
|
|
}
|
|
|
|
});
|
|
|
|
}); |