Commit 5657cb4e by vida092

snib bug arreglado

parent de6d12af
...@@ -1265,12 +1265,11 @@ var module_nicho = (function () { ...@@ -1265,12 +1265,11 @@ var module_nicho = (function () {
// if (rango_fechas[0] == $("#sliderFecha").slider("option", "min") && rango_fechas[1] == $("#sliderFecha").slider("option", "max")) { // if (rango_fechas[0] == $("#sliderFecha").slider("option", "min") && rango_fechas[1] == $("#sliderFecha").slider("option", "max")) {
// rango_fechas = undefined; // rango_fechas = undefined;
// } // }
// subgroups [{type groupid title value}{}]
console.log( subgroups) console.log( subgroups)
var chkFecha = $("#chkFecha").is(':checked'); var chkFecha = $("#chkFecha").is(':checked');
//slider_value = val_process ? $("#sliderValidation").slider("value") : 0; //slider_value = val_process ? $("#sliderValidation").slider("value") : 0;
var slider_value = val_process ? true : false; var slider_value = val_process ? true : false;
_componente_fuente.getBodyElements() _componente_fuente.getBodyElements()
...@@ -1317,6 +1316,10 @@ var module_nicho = (function () { ...@@ -1317,6 +1316,10 @@ var module_nicho = (function () {
"lim_sup_validation": "2021-07-02" "lim_sup_validation": "2021-07-02"
} }
console.log(" <===== body para el análisis =====>")
console.log(body.covariables)
console.log(body.covariable_filter)
// Falta agregar la condición makesense. // Falta agregar la condición makesense.
...@@ -1405,6 +1408,10 @@ var module_nicho = (function () { ...@@ -1405,6 +1408,10 @@ var module_nicho = (function () {
// _componente_target = _variable_module_nicho.createSelectorComponent("var_target", ids_comp_variables[1], "", false, true, true, 4); // _componente_target = _variable_module_nicho.createSelectorComponent("var_target", ids_comp_variables[1], "", false, true, true, 4);
_componente_target = _variable_module_nicho.createSelectorComponent("var_target", ids_comp_variables[1], "", false, true, true); _componente_target = _variable_module_nicho.createSelectorComponent("var_target", ids_comp_variables[1], "", false, true, true);
var targetChildDiv = $('#tab_content_target').find('div').first();
// Change the id attribute of the child div
targetChildDiv.attr('id', 'tab0_target');
// enlazando los modulos que tienen interacción en los procesos // enlazando los modulos que tienen interacción en los procesos
_res_display_module_nicho.startResDisplay(_map_module_nicho, _histogram_module_nicho, _table_module, _language_module_nicho, ids_comp_variables); _res_display_module_nicho.startResDisplay(_map_module_nicho, _histogram_module_nicho, _table_module, _language_module_nicho, ids_comp_variables);
......
...@@ -348,10 +348,7 @@ var variable_module = (function (verbose, url_zacatuche) { ...@@ -348,10 +348,7 @@ var variable_module = (function (verbose, url_zacatuche) {
}) })
}) })
console.log(familias)
console.log(generos)
console.log(nombrescientificos)
console.log(data)
$('#jstree_variables_species_target').on('open_node.jstree', self.getTreeVar); $('#jstree_variables_species_target').on('open_node.jstree', self.getTreeVar);
$("#jstree_variables_species_target").on('changed.jstree', self.getChangeTreeVarTarget); $("#jstree_variables_species_target").on('changed.jstree', self.getChangeTreeVarTarget);
$("#jstree_variables_species_target").on('loaded.jstree', self.loadNodes); $("#jstree_variables_species_target").on('loaded.jstree', self.loadNodes);
...@@ -763,12 +760,13 @@ var variable_module = (function (verbose, url_zacatuche) { ...@@ -763,12 +760,13 @@ var variable_module = (function (verbose, url_zacatuche) {
name_class = 'active nav-variables'; name_class = 'active nav-variables';
} }
var li = $('<li/>') var li = $('<li/>')
.addClass(name_class) .addClass(name_class)
.appendTo(nav_items) .appendTo(nav_items)
.click(function (e) { .click(function (e) {
console.log( e.target.getAttribute('href') )
$('.nav-tabs a[href="' + e.target.getAttribute('href') + '"]').tab('show'); $('.nav-tabs a[href="' + e.target.getAttribute('href') + '"]').tab('show');
e.preventDefault(); e.preventDefault();
}); });
...@@ -779,13 +777,13 @@ var variable_module = (function (verbose, url_zacatuche) { ...@@ -779,13 +777,13 @@ var variable_module = (function (verbose, url_zacatuche) {
.text(_iTrans.prop(tags[i])) .text(_iTrans.prop(tags[i]))
.appendTo(li);tags .appendTo(li);tags
console.log(tags[i]) console.log(tags[i])
}
});
}
});
// div que alamcena el cuerpo de los tabs // div que alamcena el cuerpo de los tabs
var tab_content = $('<div/>') var tab_content = $('<div/>')
...@@ -801,7 +799,7 @@ var variable_module = (function (verbose, url_zacatuche) { ...@@ -801,7 +799,7 @@ var variable_module = (function (verbose, url_zacatuche) {
//_VERBOSE ? console.log(tags[i]) : _VERBOSE; //_VERBOSE ? console.log(tags[i]) : _VERBOSE;
//div del tab[i]_id //div del tab[i]_id
var tab_pane = $('<div/>') var tab_pane = $('<div/>')
.attr('id', 'tab' + i + "_" + "target") .attr('id', 'tab' + i + "_" + "fuente")
.addClass('tab-pane active') .addClass('tab-pane active')
.appendTo(tab_content); .appendTo(tab_content);
//div id="tab_content_fuente" & class="tab-content" //div id="tab_content_fuente" & class="tab-content"
...@@ -810,7 +808,7 @@ var variable_module = (function (verbose, url_zacatuche) { ...@@ -810,7 +808,7 @@ var variable_module = (function (verbose, url_zacatuche) {
.appendTo(drop_item); .appendTo(drop_item);
var btn_sp = $('<button/>') var btn_sp = $('<button/>')
.attr('id', 'btn_variable' + "_" + "target") .attr('id', 'btn_variable' + "_" + "fuente")
.attr('type', 'button') .attr('type', 'button')
.attr('data-toggle', 'dropdown') .attr('data-toggle', 'dropdown')
.attr('aria-haspopup', 'true') .attr('aria-haspopup', 'true')
...@@ -1605,11 +1603,6 @@ var variable_module = (function (verbose, url_zacatuche) { ...@@ -1605,11 +1603,6 @@ var variable_module = (function (verbose, url_zacatuche) {
.addClass('tab-pane') .addClass('tab-pane')
.appendTo(tab_content) .appendTo(tab_content)
// contendor de arbol y panel de seleccion // contendor de arbol y panel de seleccion
var tree_nav_container = $('<div/>') var tree_nav_container = $('<div/>')
.addClass('row nav_species_container') .addClass('row nav_species_container')
...@@ -1623,10 +1616,6 @@ var variable_module = (function (verbose, url_zacatuche) { ...@@ -1623,10 +1616,6 @@ var variable_module = (function (verbose, url_zacatuche) {
var tree = $('<div/>') var tree = $('<div/>')
.attr('id', "jstree_variables_bioclim_" + id) .attr('id', "jstree_variables_bioclim_" + id)
.appendTo(div_tree); .appendTo(div_tree);
var btn_add = $('<button/>') var btn_add = $('<button/>')
.attr('id', 'add_group_bioclim' + "_" + id) .attr('id', 'add_group_bioclim' + "_" + id)
.attr('type', 'button') .attr('type', 'button')
...@@ -2487,6 +2476,7 @@ var variable_module = (function (verbose, url_zacatuche) { ...@@ -2487,6 +2476,7 @@ var variable_module = (function (verbose, url_zacatuche) {
for (i = 0; i < arraySelected.length; i++) { for (i = 0; i < arraySelected.length; i++) {
console.log(arraySelected[i])
// se elimita el spp del label cuando es tipo BIO // se elimita el spp del label cuando es tipo BIO
if (typeVar == _TYPE_BIO) { if (typeVar == _TYPE_BIO) {
...@@ -2502,6 +2492,12 @@ var variable_module = (function (verbose, url_zacatuche) { ...@@ -2502,6 +2492,12 @@ var variable_module = (function (verbose, url_zacatuche) {
} }
console.log("--------------------------------------------------------------------------------------")
console.log(subgroup)
console.log("--------------------------------------------------------------------------------------")
var groupid = parseInt(maxGroup) + 1; var groupid = parseInt(maxGroup) + 1;
console.log("maxGroup: " + maxGroup); console.log("maxGroup: " + maxGroup);
console.log("groupid: " + groupid); console.log("groupid: " + groupid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment