SmartBI.js 985 B

123456789101112131415161718192021222324252627282930
  1. MWF.xDesktop.requireApp("process.Xform", "SmartBI", null, false);
  2. MWF.xApplication.cms.Xform.SmartBI = MWF.CMSSmartBI = new Class({
  3. Extends: MWF.APPSmartBI,
  4. _loadUserInterface: function(){
  5. if (!this.json.smartbiresource || this.json.smartbiresource==="none") this.node.destroy();
  6. else{
  7. var _iframe = this.node.getElement("iframe");
  8. var url = _iframe.get("src");
  9. this.iframe = new Element("iframe",{
  10. src:url,
  11. frameborder:"0",
  12. scrolling:"auto"
  13. }).inject(this.node,"after");
  14. var _recoveryStyles = this.json.recoveryStyles || {};
  15. this.node.destroy();
  16. this.node = this.iframe.setStyles({
  17. "width":"100%",
  18. "height":"100%",
  19. "min-height":"500px",
  20. "min-width":"500px"
  21. });
  22. this.node.setStyles(_recoveryStyles)
  23. }
  24. }
  25. });