TimeTrex/interface/html5/dist/portal-hr-recruitment-PortalJobVacancyRowController.bundle.js

1 line
3.2 KiB
JavaScript
Raw Normal View History

2022-12-13 07:10:06 +01:00
"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["portal-hr-recruitment-PortalJobVacancyRowController"],{1730:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"PortalJobVacancyRowController\": () => (/* binding */ PortalJobVacancyRowController)\n/* harmony export */ });\n/* harmony import */ var _views_TTBackboneView__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6739);\n/* provided dependency */ var _ = __webpack_require__(9050);\n\n\nclass PortalJobVacancyRowController extends _views_TTBackboneView__WEBPACK_IMPORTED_MODULE_0__.TTBackboneView {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {} );\n\n\t\tsuper( options );\n\t}\n\n\tinitialize( options ) {\n\t\tsuper.initialize( options );\n\t\tvar $this = this;\n\t\tvar row = Global.loadWidget( 'views/portal/hr/recruitment/PortalJobVacancyRow.html' );\n\t\tfor ( var key in this.model.attributes ) {\n\t\t\tif ( this.model.get( key ) == false ) {\n\t\t\t\tthis.model.set( key, '' );\n\t\t\t}\n\t\t}\n\t\tthis.setElement( _.template( row )( this.model.toJSON() ) );\n\t\tthis.$el.on( 'click', function( e ) {\n\t\t\tvar url = Global.getBaseURL() + '#!m=PortalJobVacancyDetail&id=' + $this.model.id + '&company_id=' + LocalCacheData.getAllURLArgs().company_id;\n\t\t\twindow.location = url;\n\t\t} );\n\t}\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTczMC5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBd0Q7O0FBRWpELDRDQUE0QyxpRUFBYztBQUNqRSwyQkFBMkI7QUFDM0IsRUFBRSxDQUFDL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