Procházet zdrojové kódy

middle banner displaying

The middle banner will not be shown on both more and privacy pages.
f-to před 4 roky
rodič
revize
92f7df147f
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      tarteaucitron.js

+ 2 - 2
tarteaucitron.js

@@ -219,8 +219,8 @@ var tarteaucitron = {
             },
             params = tarteaucitron.parameters;
 
-        // Don't show the middle bar if we are on the privacy policy page
-        if (window.location.href == tarteaucitron.parameters.privacyUrl && tarteaucitron.parameters.orientation == "middle") {
+        // Don't show the middle bar if we are on the privacy policy or more page
+        if (((tarteaucitron.parameters.readmoreLink !== undefined && window.location.href == tarteaucitron.parameters.readmoreLink) || window.location.href == tarteaucitron.parameters.privacyUrl) && tarteaucitron.parameters.orientation == "middle") {
             tarteaucitron.parameters.orientation = "bottom";
         }