'use strict'; /** * Licensed Materials - Property of IBM * IBM Cognos Products: BI Cloud (C) Copyright IBM Corp. 2014, 2018 * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ define(['jquery', '../../../lib/@waca/core-client/js/core-client/ui/dialogs/BaseDialog'], function ($, BaseDialog) { var Dialog = null; Dialog = BaseDialog.extend({ init: function init(url, successCheck, okHandler, cancelHandler) { Dialog.inherited('init', this); this.url = url; this.successCheck = successCheck; this.okHandler = okHandler; this.cancelHandler = cancelHandler; }, show: function show() { var nContainer = this._container(); if (nContainer.length) { nContainer.empty(); var styles = { width: window.innerWidth - 50, height: window.innerHeight - 50 }; var content = this.renderContent($('
', { 'class': 'dialogContent dialogCenter' }).css(styles)); nContainer.append($('
', { 'class': 'modalDialog', 'tabIndex': '0', 'role': 'dialog' }).append(content)); } }, renderContent: function renderContent(n) { this.$dialog = $('