deployment.js 658 B

123456789101112131415161718192021
  1. // Licensed Materials - Property of IBM
  2. //
  3. // IBM Cognos Products: ps
  4. //
  5. // (C) Copyright IBM Corp. 2010, 2011
  6. //
  7. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  8. // Copyright (C) 2008 Cognos Incorporated. All rights reserved.
  9. // Cognos and the Cognos logo are trademarks of Cognos Incorporated.
  10. dojo.provide("ps.deployment");
  11. dojo.declare("ps.deployment",null, {
  12. targetLocationWarningExists: function(document) {
  13. return dojo.query("img." + this.getWarningClass()).length > 0;
  14. },
  15. getWarningClass: function() {
  16. return "warningTargetLocation";
  17. }
  18. });