1/* Licensed Materials - Property of IBM 5724-O03 2 * Copyright IBM Corp. 2011 3 * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. 4 * See WebSphere Portlet Factory ( product id 5724-O03 ) product license for terms and conditions of use. 5 */ 6if (typeof wpf_dojo_utils80201204160803 == "undefined") 7{ 8 wpf_dojo_utils80201204160803={ 9 isDojoStylesLoaded: function(){ 10 var retval=false; 11 try{ 12 for(var i=0; i<document.styleSheets.length; i++){ 13 var sheet=document.styleSheets[i]; 14 var ct=sheet.cssText; 15 if (ct&&(typeof ct !="undefined")&&ct.indexOf("dijit")>=0){ 16 retval = true; 17 break; 18 }else{ 19 var rules = sheet.rules || sheet.cssRules; 20 for (var j = 0; j < rules.length; j++){ 21 var sel=rules[j].cssText; 22 if (typeof sel == "undefined") 23 sel=rules[j].selectorText; 24 if (sel && sel.indexOf("dijit")>=0){ 25 retval = true; 26 break; 27 } 28 } 29 } 30 } 31 }catch(err){} 32 if (retval) 33 wpf_dojo_utils80201204160803.isDojoStylesLoaded=function(){return true;} 34 return retval; 35 }, 36 updateFormInputs: function(id){ 37 dojo.forEach(dojo.query('#'+id+' form'),function(frm){ 38 dojo.forEach(dojo.query('*',frm),function(el){ 39 var widget; 40 if(el.id&&(widget=dijit.byId(el.id))&&!widget.form){ 41 widget.form=frm; 42 } 43 }); 44 }); 45 }, 46 toggleClass: function(currentNode, targetClass, toggleClass){ 47 var parent = currentNode.parentNode; 48 var targetNodes = null; 49 while(parent != null){ 50 var nodes = dojo.query("." + targetClass, parent); 51 if(nodes.length > 0){ 52 targetNodes = nodes; 53 break; 54 } else 55 parent = parent.parentNode; 56 } 57 if(targetNodes != null){ 58 dojo.forEach(targetNodes,function(node){ 59 dojo.toggleClass(node, toggleClass); 60 }); 61 } 62 }, 63 loadIfNeeded:function(wpfDojoUrl,locale,loadViaParent,debug){ 64 window.wpfLoadedDojo=false; 65 if(typeof dojo == "undefined"){ 66 djConfig={parseOnLoad:false,isDebug:false,locale:locale,isDebug:debug}; 67 var url=wpfDojoUrl; 68 if (loadViaParent){ 69 if (opener!=null && typeof opener.dojo != "undefined" && typeof opener.dojo != "unknown") 70 url=opener.dojo.baseUrl+"dojo.js"; 71 else if(parent!=null && typeof parent.dojo != "undefined" && typeof parent.dojo != "unknown") 72 url=parent.dojo.baseUrl+"dojo.js"; 73 } 74 document.write("<"+"script src='"+url+"'> </"+"script>"); 75 window.wpfLoadedDojo=true; 76 } 77 } 78 }; 79}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.