Procházet zdrojové kódy

Not using version-select atm

Kevin van Zonneveld před 9 roky
rodič
revize
68774ef15f
1 změnil soubory, kde provedl 12 přidání a 11 odebrání
  1. 12 11
      website/themes/uppy/source/js/common.js

+ 12 - 11
website/themes/uppy/source/js/common.js

@@ -167,18 +167,19 @@
   e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
   e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
   })(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');
   })(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');
 
 
-  _st('install','HgpxvBc7pUaPUWmG9sgv','2.0.0');
+  // @todo get our own swifttype
+  // _st('install','HgpxvBc7pUaPUWmG9sgv','2.0.0');
 
 
   // version select
   // version select
-  document.querySelector('.version-select').addEventListener('change', function (e) {
-    var version = e.target.value
-    if (version.indexOf('1.') !== 0) {
-      version = version.replace('.', '')
-      var section = window.location.pathname.match(/\/(\w+?)\//)[1]
-      window.location.assign('http://' + version + '.uppyjs.io/' + section + '/')
-    } else {
-      // TODO when 1.x is out
-    }
-  })
+  // document.querySelector('.version-select').addEventListener('change', function (e) {
+  //   var version = e.target.value
+  //   if (version.indexOf('1.') !== 0) {
+  //     version = version.replace('.', '')
+  //     var section = window.location.pathname.match(/\/(\w+?)\//)[1]
+  //     window.location.assign('http://' + version + '.uppyjs.io/' + section + '/')
+  //   } else {
+  //     // TODO when 1.x is out
+  //   }
+  // })
 
 
 })()
 })()