amic hai 1 ano
pai
achega
24f8448d7d
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      views/news/view.php

+ 2 - 1
views/news/view.php

@@ -289,7 +289,8 @@ if( strpos( $model->text, 'class="InviewElement' ) !== false ){
         var gallery = document.getElementById("gallery-0");
 		g = Array.from(document.getElementsByClassName('gallery'));
 		g.forEach( (gallery) =>{ console.log(gallery);
-        if(gallery!==null) {
+
+        if(gallery!==null && !gallery.classList.contains("splide")) {
             var wrapper = document.createElement("div");
             wrapper.classList.add('gallery-wrapper')
             gallery.parentNode.insertBefore(wrapper, gallery)