소스 검색

click on 'collection' menu remove home

Bachir Soussi Chiadmi 7 년 전
부모
커밋
03a6d00061
2개의 변경된 파일24개의 추가작업 그리고 22개의 파일을 삭제
  1. 0 0
      sites/all/themes/custom/edlptheme/assets/dist/scripts/main.min.js
  2. 24 22
      sites/all/themes/custom/edlptheme/assets/scripts/main.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
sites/all/themes/custom/edlptheme/assets/dist/scripts/main.min.js


+ 24 - 22
sites/all/themes/custom/edlptheme/assets/scripts/main.js

@@ -436,28 +436,28 @@
     // /_/ \_\/ \__,_/_\_\ |___/_\___/\__|_\_\/__/
     //      |__/
     // NOT USED (YET)
-    function refreshAllBlocks(){
-      var path = window.location.origin + Drupal.url(_ajax_settings.blocksjson_path);
-      $.getJSON(path, {})
-        .done(function(data){
-          onAjaxBlockLoaded(data);
-        })
-        .fail(function(jqxhr, textStatus, error){
-          onAjaxBlockLoadError(jqxhr, textStatus, error);
-        });
-    };
-    function onAjaxBlockLoadError(jqxhr, textStatus, error){
-      console.warn('ajax block load failed: '+error, jqxhr.responseText);
-    };
-    function onAjaxBlockLoaded(data){
-      console.log('onAjaxBlockLoaded', data);
-      // TODO: update each blocks (exepted language switcher)
-      for (var blockname in data.blocks) {
-        var block = data.blocks[blockname];
-        console.log(blockname, block);
-        $(block.id).replaceWith(block.rendered);
-      }
-    };
+    // function refreshAllBlocks(){
+    //   var path = window.location.origin + Drupal.url(_ajax_settings.blocksjson_path);
+    //   $.getJSON(path, {})
+    //     .done(function(data){
+    //       onAjaxBlockLoaded(data);
+    //     })
+    //     .fail(function(jqxhr, textStatus, error){
+    //       onAjaxBlockLoadError(jqxhr, textStatus, error);
+    //     });
+    // };
+    // function onAjaxBlockLoadError(jqxhr, textStatus, error){
+    //   console.warn('ajax block load failed: '+error, jqxhr.responseText);
+    // };
+    // function onAjaxBlockLoaded(data){
+    //   console.log('onAjaxBlockLoaded', data);
+    //   // TODO: update each blocks (exepted language switcher)
+    //   for (var blockname in data.blocks) {
+    //     var block = data.blocks[blockname];
+    //     console.log(blockname, block);
+    //     $(block.id).replaceWith(block.rendered);
+    //   }
+    // };
 
     //  _  _ _    _
     // | || (_)__| |_ ___ _ _ _  _
@@ -597,6 +597,8 @@
         .add('a', '.field--name-field-son')
         .addClass('ajax-link');
 
+      $('a[data-drupal-link-system-path="<front>"]', '#block-mainnavigation').removeClass('is-active');
+
       _$ajaxLinks = $('.ajax-link:not(.ajax-enabled)')
         .each(function(i,e){
           var $this = $(this);

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.