[Rt-commit] rt branch, 4.6/move-inline-js-to-static, repushed

Maureen Mirville maureen at bestpractical.com
Thu May 31 19:04:39 EDT 2018


The branch 4.6/move-inline-js-to-static was deleted and repushed:
       was 1de19d6379679054900679f161563f7bfabda91e
       now 8882f89be9de8f958d377a524a78e48fef176f6e

1: 1de19d637 ! 1: 8882f89be Move inline javascript to share/static directory
    @@ -20,31 +20,6 @@
      
          <ol>
      %     my $r = 0;
    -
    -diff --git a/share/html/Elements/Framekiller b/share/html/Elements/Framekiller
    ---- a/share/html/Elements/Framekiller
    -+++ b/share/html/Elements/Framekiller
    -@@
    - %# This is defeatable.  The current best known implemention uses CSS to hide
    - %# the content and JS to re-show it, but that fails poorly for clients that
    - %# don't run JS.
    --<script>
    --if (window.top !== window.self) {
    --    document.write = "";
    --
    --    window.top.location = window.self.location;
    --
    --    setTimeout(function(){
    --        document.body.innerHTML = "";
    --    }, 1);
    --
    --    window.self.onload = function(){
    --        document.body.innerHTML = "";
    --    };
    --}
    --</script>
    -+<script src="<%RT->Config->Get('WebPath')%>/static/js/header.js"></script>
    - % }
     
     diff --git a/share/html/Prefs/AboutMe.html b/share/html/Prefs/AboutMe.html
     --- a/share/html/Prefs/AboutMe.html
    @@ -241,24 +216,6 @@
     +  });
     +}
     
    -diff --git a/share/static/js/header.js b/share/static/js/header.js
    -new file mode 100644
    ---- /dev/null
    -+++ b/share/static/js/header.js
    -@@
    -+if (window.top !== window.self) {
    -+  document.write = "";
    -+  window.top.location = window.self.location;
    -+
    -+  setTimeout(function(){
    -+    document.body.innerHTML = "";
    -+  }, 1);
    -+
    -+  window.self.onload = function(){
    -+    document.body.innerHTML = "";
    -+  };
    -+}
    -
     diff --git a/share/static/js/search.js b/share/static/js/search.js
     new file mode 100644
     --- /dev/null



More information about the rt-commit mailing list