djConfig.js 797 B

12345678910111213141516171819202122
  1. /****************************************************************
  2. *
  3. * Licensed Materials - Property of IBM
  4. *
  5. * IBM Cognos Products: HTS
  6. *
  7. *(C) Copyright IBM Corp. 2005, 2010
  8. *
  9. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  10. *
  11. ****************************************************************/
  12. //<!-- The purpose of this file is to set the dojo locale, before dojo is loaded.
  13. // It reads the part of the script tag that defines the djConfig
  14. //-->
  15. var scripts = document.getElementsByTagName("script");
  16. for(var i = 0; i < scripts.length; i++){
  17. var src = scripts[i].getAttribute("src");
  18. if(!src){ continue; }
  19. if(src.indexOf("djConfig.js")!= -1) {
  20. eval(src.substr(src.indexOf("?")+1));
  21. }
  22. }