/** * OpenDialog.js * * Select Codepage for open CSV/TXT format file. * * Created by Alexey.Musinov on 29/04/14 * Copyright (c) 2014 Ascensio System SIA. All rights reserved. * */ define([ 'common/main/lib/component/Window' ], function () { 'use strict'; Common.Views.OpenDialog = Common.UI.Window.extend(_.extend({ applyFunction: undefined, initialize : function (options) { var t = this, _options = {}; _.extend(_options, { closable: false, width : 250, height : (options.type == c_oAscAdvancedOptionsID.CSV) ? 205 : 155, contentWidth : 390, header : true, cls : 'open-dlg', contentTemplate : '', title : t.txtTitle.replace('%1', (options.type == c_oAscAdvancedOptionsID.CSV) ? 'CSV' : 'TXT') }, options); this.template = options.template || [ '