TimeTrex/interface/html5/dist/wizard-report_view-ReportViewWizardController.bundle.js

1 line
5.4 KiB
JavaScript

"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["wizard-report_view-ReportViewWizardController"],{2140:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"ReportViewWizardController\": () => (/* binding */ ReportViewWizardController)\n/* harmony export */ });\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\nclass ReportViewWizardController extends BaseWizardController {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\t\t\tel: '#report-view-wizard'\n\t\t} );\n\n\t\tsuper( options );\n\t}\n\n\tinit( options ) {\n\t\t//this._super('initialize', options );\n\t\tthis.title = $.i18n._( 'Report View' );\n\t\tthis.steps = 1;\n\t\tthis.current_step = 1;\n\t\tthis.render();\n\t}\n\n\trender() {\n\t\tsuper.render();\n\t\tthis.initCurrentStep();\n\t}\n\n\tbuildCurrentStepUI() {\n\t\tthis.stepsWidgetDic[this.current_step] = {};\n\t\tswitch ( this.current_step ) {\n\t\t\tcase 1:\n\t\t\t\tthis.content_div.children().eq( 0 )[0].contentWindow.document.open();\n\t\t\t\tif ( this.default_data.post_data ) {\n\t\t\t\t\tthis.content_div.children().eq( 0 )[0].contentWindow.post_data = this.default_data.post_data;\n\t\t\t\t\tthis.content_div.children().eq( 0 )[0].contentWindow.document.writeln( this.default_data.result );\n\t\t\t\t} else {\n\t\t\t\t\tthis.content_div.children().eq( 0 )[0].contentWindow.document.writeln( this.default_data );\n\t\t\t\t}\n\t\t\t\tthis.content_div.children().eq( 0 )[0].contentWindow.document.close();\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tonCloseClick() {\n\t\t$( this.el ).remove();\n\t\tLocalCacheData.current_open_wizard_controllers = LocalCacheData.current_open_wizard_controllers.filter( wizard => wizard.wizard_id !== this.wizard_id );\n\n\t\tvar source = 'View'; // Backup value in case the url sm does not exist.\n\t\tif ( LocalCacheData.getAllURLArgs() && LocalCacheData.getAllURLArgs().sm ) {\n\t\t\tsource = LocalCacheData.getAllURLArgs().sm + '@View';\n\t\t}\n\t\t$().TFeedback( {\n\t\t\tsource: source,\n\t\t\tforce_source: true\n\t\t} );\n\t}\n\n\tonDoneClick() {\n\t\tthis.onCloseClick();\n\t}\n\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjE0MC5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBTztBQUNQLDJCQUEyQjtBQUMzQixFQUFFLENBQUM7QUFDSDtBQUNBLElBQUk7O0FBRUo7QUFDQTs7QUFFQTtBQUNBO0FBQ0EsZUFBZSxDQUFDO0FBQ2hCO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxNQUFNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0EsRUFBRSxDQUFDO0FBQ0g7O0FBRUEsdUJBQXVCO0FBQ3ZCO0FBQ0E7QUFDQTtBQUNBLEVBQUUsQ0FBQztBQUNIO0FBQ0E7QUFDQSxJQUFJO0FBQ0o7O0FBRUE7QUFDQTtBQUNBOztBQUVBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vaW50ZXJmYWNlL2h0bWw1L3ZpZXdzL3dpemFyZC9yZXBvcnRfdmlldy9SZXBvcnRWaWV3V2l6YXJkQ29udHJvbGxlci5qcz81ZmRhIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBSZXBvcnRWaWV3V2l6YXJkQ29udHJvbGxlciBleHRlbmRzIEJhc2VXaXphcmRDb250cm9sbGVyIHtc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