[10.0.056] Erreur click galerie à trier + aperçu cliquable

This commit is contained in:
Fred Tempez 2020-04-06 14:30:26 +02:00
parent c0c3d22d77
commit b7022af095
2 changed files with 2 additions and 3 deletions

View File

@ -274,7 +274,7 @@ class gallery extends common {
template::text('legend[' . $fileInfos->getFilename() . ']', [ template::text('legend[' . $fileInfos->getFilename() . ']', [
'value' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'legend', str_replace('.','',$fileInfos->getFilename())]) 'value' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'legend', str_replace('.','',$fileInfos->getFilename())])
]), ]),
'<a href="'. $directory . '/' . $fileInfos->getFilename() .'" data-lity><img src="'. str_replace('source','thumb',$directory) . '/' . $fileInfos->getFilename() . '"></a>' '<a href="'. str_replace('source','thumb',$directory) . '/mini_' . $fileInfos->getFilename() .'" rel="data-lity" data-lity=""><img src="'. str_replace('source','thumb',$directory) . '/' . $fileInfos->getFilename() . '"></a>'
]; ];
} }
} }

View File

@ -25,8 +25,7 @@ $( document ).ready(function() {
}); });
// Activer le bouton de tri uniquement après un tri // Activer le bouton de tri uniquement après un tri
$("#galleryTable").click(function(e) { $("#galleryTable").click(function() {
e.preventDefault();
if ($("#galleryConfigFilterResponse").val() != "") { if ($("#galleryConfigFilterResponse").val() != "") {
$(":input[type='submit']").prop('disabled', false); $(":input[type='submit']").prop('disabled', false);
} }