misc.js 623 B

1234567891011121314151617181920212223
  1. // Licensed Materials - Property of IBM
  2. //
  3. // IBM Cognos Products: cogadmin
  4. //
  5. // (C) Copyright IBM Corp. 2011
  6. //
  7. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  8. //
  9. //
  10. dojo.provide("com.ibm.cognos.admin.utils.misc");
  11. dojo.mixin(com.ibm.cognos.admin.utils.misc,{
  12. displayToggle: function(id){
  13. var targetElement = dojo.byId(id);
  14. if (targetElement){
  15. if (dojo.style(targetElement, "display") == "none"){
  16. dojo.style(targetElement, "display","");
  17. } else {
  18. dojo.style(targetElement, "display","none");
  19. }
  20. }
  21. }
  22. });