// Licensed Materials - Property of IBM // // IBM Cognos Products: cogadmin // // (C) Copyright IBM Corp. 2005, 2011 // // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. // // /* * This class will initial the fragment env to meet the dojo load * */ if (typeof dojo == "undefined") throw new Error ("Dojo is not loaded."); //register cogadmin dojo style JavaScript library to dojo dojo.registerModulePath('com.ibm.cognos.admin', '../../ps/cogadmin/js/com/ibm/cognos/admin'); dojo.addOnLoad ( function () { //inject the tundra css into body class, before we have a elegent solution var body = document.getElementsByTagName("body")[0]; var currClass = dojo.attr( body, "class" ) || ""; if (currClass.indexOf ("tundra") == -1){ dojo.attr( body, "class", currClass + " tundra" ); } } );