Commit 2ee2cee6 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Resuelve prefijo de ruta de subida de ficheros

parent 421c454d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1166,6 +1166,8 @@ define({

	, "followUs": "Síguenos"

	, "load": "Cargar"

	// Para capas que no se pueden cambiar las keys
	, "descript_1": "Descripción"
	, "descriptio": "Descripción"
+2 −0
Original line number Diff line number Diff line
@@ -1171,6 +1171,8 @@ define({

		, "followUs": "Follow us"

		, "load": "Load"

		//Para capas que no se pueden cambiar las keys
		, "descript_1": "Description"
		, "descriptio": "Description"
+13 −3
Original line number Diff line number Diff line
define([
	'alertify/alertify.min'
	, 'app/redmicConfig'
	, 'dijit/_TemplatedMixin'
	, 'dijit/_WidgetBase'
	, 'dojo/_base/declare'
@@ -13,6 +14,7 @@ define([
	, 'dropzone/dropzone.min'
], function(
	alertify
	, redmicConfig
	, _TemplatedMixin
	, _WidgetBase
	, declare
@@ -68,14 +70,22 @@ define([

		postCreate: function() {

			if (!this.url) {
			var envDfd = window.env;

			if (!this.url || !envDfd) {
				console.error('URL not specified for file upload input');
				return;
			}

			this._setPreviousProperties();

			envDfd.then(lang.hitch(this, function(envData) {

				this.url = redmicConfig.getServiceUrl(this.url, envData);

				this._dropzone = this._getNewInstance();
				this._listenInstanceEvents(this._dropzone);
			}));
		},

		_setPreviousProperties: function() {