Browse Source

supprimer un bloc et des espaces

12_dev
fredtempez 5 months ago
parent
commit
9f38d65c6a
  1. 14
      module/gallery/view/config/config.php
  2. 7
      module/gallery/view/edit/edit.js.php

14
module/gallery/view/config/config.php

@ -48,14 +48,12 @@
<?php echo template::formClose(); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4>Galeries installées</h4>
<?php if($module::$galleries): ?>
<?php echo template::table([1, 4, 5, 1, 1], $module::$galleries, ['','Nom', 'Dossier cible', '', ''], ['id' => 'galleryTable'],$module::$galleriesId); ?>
<?php echo template::hidden('galleryConfigFilterResponse'); ?>
<?php else: ?>
<?php echo template::speech('Aucune galerie.'); ?>
<?php endif; ?>
<?php if($module::$galleries): ?>
<?php echo template::table([1, 4, 5, 1, 1], $module::$galleries, ['','Nom', 'Dossier cible', '', ''], ['id' => 'galleryTable'],$module::$galleriesId); ?>
<?php echo template::hidden('galleryConfigFilterResponse'); ?>
<?php else: ?>
<?php echo template::speech('Aucune galerie.'); ?>
<?php endif; ?>
</div>
<div class="moduleVersion">Version n°
<?php echo $module::VERSION; ?>

7
module/gallery/view/edit/edit.js.php

@ -106,13 +106,16 @@ function sortPictures() {
var url = "<?php echo helper::baseUrl() . $this->getUrl(0); ?>/sortPictures";
var d1 = $("#galleryEditFormResponse").val();
var d2 = $("#galleryEditFormGalleryName").val();
//var data = $('#galleryEditForm').serialize();
$.ajax({
type: "POST",
url: url ,
data: {
response : d1,
gallery: d2
}
},
error: function (xhr, ajaxOptions, thrownError) {
alert(xhr.status);
alert(thrownError);
}
});
}

Loading…
Cancel
Save