Loading public/javascript/app/nls/es/translation.js +3 −0 Original line number Diff line number Diff line Loading @@ -1313,6 +1313,9 @@ define({ , "mapCentering": "Centrar mapa en capa" , "aboveOptions": "Opciones anteriores" , "moreOptions": "Más opciones" // Para capas que no se pueden cambiar las keys , "descript_1": "Descripción" Loading public/javascript/app/nls/translation.js +3 −0 Original line number Diff line number Diff line Loading @@ -1317,6 +1317,9 @@ define({ , "mapCentering": "Center map on layer" , "aboveOptions": "Previous options" , "moreOptions": "More options" //Para capas que no se pueden cambiar las keys , "descript_1": "Description" Loading public/javascript/redmic/widgets/Button.js +2 −1 Original line number Diff line number Diff line Loading @@ -90,8 +90,9 @@ define([ if (this.href) { this.buttonNode.setAttribute('href', this.href); this.buttonNode.setAttribute('d-state-url', true); } else if (this.onClick) } else if (this.onClick) { this.buttonNode.onclick = this.onClick; } if (this.disable) { this._disable(); Loading public/javascript/redmic/widgets/Converter.js +4 −10 Original line number Diff line number Diff line Loading @@ -25,9 +25,7 @@ define([ // returns: // Booleano que indica si es válido o no. if (Object.keys(spatialReferences).indexOf(reference.toString ? reference.toString() : reference) == -1) return false; return true; return Object.keys(spatialReferences).indexOf(reference.toString ? reference.toString() : reference) !== -1; }; var _isValidValue = function(/*Integer*/ value) { Loading @@ -40,12 +38,10 @@ define([ // returns: // Booleano con la respuesta. if (value === null || value === undefined || isNaN(value)) return false; return true; return value !== null && value !== undefined && !isNaN(value); }; var conversor = { return { DMS2DD: function(/*Integer*/ degrees, /*Integer*/ minutes, /*Number*/ seconds) { // summary: // Convierte de grados, minutos y segundos a grados decimales. Loading Loading @@ -139,6 +135,4 @@ define([ return point; } }; return conversor; }); public/javascript/redmic/widgets/DatePicker.js +7 −12 Original line number Diff line number Diff line Loading @@ -9,7 +9,6 @@ define([ , "dijit/Calendar" , "dojo/date/locale" , "dijit/form/DateTextBox" , "dijit/form/ValidationTextBox" ], function( declare , _WidgetBase Loading @@ -21,11 +20,7 @@ define([ , Calendar , locale , DateTextBox , ValidationTextBox ) { var cleanSpace = function(text) { return text.trim(); }; return declare([_WidgetBase, Evented], { Loading Loading @@ -89,7 +84,7 @@ define([ _changeRangeDate: function() { if (!this.minDate & !this.maxDate) { if (!this.minDate && !this.maxDate) { put(this.removeNode, '.hidden'); this.inputNode.value = ''; } Loading Loading @@ -214,7 +209,7 @@ define([ this.containerInput = put('div.datePicker'); icon = put(this.containerInput, 'i.fa.fa-calendar.iconCalendar'); var icon = put(this.containerInput, 'i.fa.fa-calendar.iconCalendar'); this.inputNode = put(this.containerInput, "input[type=text]"); Loading Loading @@ -315,18 +310,18 @@ define([ this.inputTo.watch('value', lang.hitch(this, this._changeInputMax)); }, _isDisableDateMax: function(d) { _isDisableDateMax: function(dParam) { var d = new Date(d); var d = new Date(dParam); if (this.minDate) return dojo.date.difference(this.minDate, d) < 0; else return false; }, _isDisableDateMin: function(d) { _isDisableDateMin: function(dParam) { var d = new Date(d); var d = new Date(dParam); if (this.maxDate) return dojo.date.difference(this.maxDate, d) > 0; else Loading Loading
public/javascript/app/nls/es/translation.js +3 −0 Original line number Diff line number Diff line Loading @@ -1313,6 +1313,9 @@ define({ , "mapCentering": "Centrar mapa en capa" , "aboveOptions": "Opciones anteriores" , "moreOptions": "Más opciones" // Para capas que no se pueden cambiar las keys , "descript_1": "Descripción" Loading
public/javascript/app/nls/translation.js +3 −0 Original line number Diff line number Diff line Loading @@ -1317,6 +1317,9 @@ define({ , "mapCentering": "Center map on layer" , "aboveOptions": "Previous options" , "moreOptions": "More options" //Para capas que no se pueden cambiar las keys , "descript_1": "Description" Loading
public/javascript/redmic/widgets/Button.js +2 −1 Original line number Diff line number Diff line Loading @@ -90,8 +90,9 @@ define([ if (this.href) { this.buttonNode.setAttribute('href', this.href); this.buttonNode.setAttribute('d-state-url', true); } else if (this.onClick) } else if (this.onClick) { this.buttonNode.onclick = this.onClick; } if (this.disable) { this._disable(); Loading
public/javascript/redmic/widgets/Converter.js +4 −10 Original line number Diff line number Diff line Loading @@ -25,9 +25,7 @@ define([ // returns: // Booleano que indica si es válido o no. if (Object.keys(spatialReferences).indexOf(reference.toString ? reference.toString() : reference) == -1) return false; return true; return Object.keys(spatialReferences).indexOf(reference.toString ? reference.toString() : reference) !== -1; }; var _isValidValue = function(/*Integer*/ value) { Loading @@ -40,12 +38,10 @@ define([ // returns: // Booleano con la respuesta. if (value === null || value === undefined || isNaN(value)) return false; return true; return value !== null && value !== undefined && !isNaN(value); }; var conversor = { return { DMS2DD: function(/*Integer*/ degrees, /*Integer*/ minutes, /*Number*/ seconds) { // summary: // Convierte de grados, minutos y segundos a grados decimales. Loading Loading @@ -139,6 +135,4 @@ define([ return point; } }; return conversor; });
public/javascript/redmic/widgets/DatePicker.js +7 −12 Original line number Diff line number Diff line Loading @@ -9,7 +9,6 @@ define([ , "dijit/Calendar" , "dojo/date/locale" , "dijit/form/DateTextBox" , "dijit/form/ValidationTextBox" ], function( declare , _WidgetBase Loading @@ -21,11 +20,7 @@ define([ , Calendar , locale , DateTextBox , ValidationTextBox ) { var cleanSpace = function(text) { return text.trim(); }; return declare([_WidgetBase, Evented], { Loading Loading @@ -89,7 +84,7 @@ define([ _changeRangeDate: function() { if (!this.minDate & !this.maxDate) { if (!this.minDate && !this.maxDate) { put(this.removeNode, '.hidden'); this.inputNode.value = ''; } Loading Loading @@ -214,7 +209,7 @@ define([ this.containerInput = put('div.datePicker'); icon = put(this.containerInput, 'i.fa.fa-calendar.iconCalendar'); var icon = put(this.containerInput, 'i.fa.fa-calendar.iconCalendar'); this.inputNode = put(this.containerInput, "input[type=text]"); Loading Loading @@ -315,18 +310,18 @@ define([ this.inputTo.watch('value', lang.hitch(this, this._changeInputMax)); }, _isDisableDateMax: function(d) { _isDisableDateMax: function(dParam) { var d = new Date(d); var d = new Date(dParam); if (this.minDate) return dojo.date.difference(this.minDate, d) < 0; else return false; }, _isDisableDateMin: function(d) { _isDisableDateMin: function(dParam) { var d = new Date(d); var d = new Date(dParam); if (this.maxDate) return dojo.date.difference(this.maxDate, d) > 0; else Loading