/* *+------------------------------------------------------------------------+ *| Licensed Materials - Property of IBM *| IBM Cognos Products: Viewer *| (C) Copyright IBM Corp. 2001, 2013 *| *| US Government Users Restricted Rights - Use, duplication or *| disclosure restricted by GSA ADP Schedule Contract with IBM Corp. *| *+------------------------------------------------------------------------+ */ dojo.provide("WorkingDialog"); dojo.declare("WorkingDialog", IRequestIndicator, { constructor: function(oCV) { this.m_oCV = oCV; this.m_sNamespace = oCV.getId(); this.m_sGateway = oCV.getGateway(); try { var buttons = []; if (oCV.getAdvancedServerProperty("VIEWER_JS_HIDE_CANCEL_BUTTON") != "true") { buttons.push({"class":"icdDialogButton", label: RV_RES.CANCEL, onClick: dojo.hitch(this, this.doCancel)}); } this.m_waitPageDialog = new ViewerIWidgetInlineDialog(this.getCognosViewer(), this.getWaitPageHTML(), buttons, "waitButtonContainer_" + this.getCognosViewer().getId()); // uncomment to help debug the wait dialog // this.m_waitPageDialog.setDebugHelper(getCognosViewerObjectRefAsString(this.getCognosViewer().getId()) + ".m_waitPage"); } catch (e) { if (console && console.log) { console.log(e); } } }, setSimpleWorkingDialogFlag: function( flag ){}, getCognosViewer: function() { return this.m_oCV; }, show: function() { this.m_waitPageDialog.show(); }, getWaitPageHTML: function() { var id = this.getCognosViewer().getId(); return '
' + ' | ' + '