Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
epi-species
front
Commits
5657cb4e
Commit
5657cb4e
authored
May 25, 2023
by
vida092
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snib bug arreglado
parent
de6d12af
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
176 additions
and
68 deletions
+176
-68
javascripts/pede_nicho.js
+11
-4
javascripts/res_display_module.js
+131
-26
javascripts/variable_module.js
+34
-38
No files found.
javascripts/pede_nicho.js
View file @
5657cb4e
...
...
@@ -1265,10 +1265,9 @@ var module_nicho = (function () {
// if (rango_fechas[0] == $("#sliderFecha").slider("option", "min") && rango_fechas[1] == $("#sliderFecha").slider("option", "max")) {
// rango_fechas = undefined;
// }
// subgroups [{type groupid title value}{}]
console
.
log
(
subgroups
)
var
chkFecha
=
$
(
"#chkFecha"
).
is
(
':checked'
);
var
chkFecha
=
$
(
"#chkFecha"
).
is
(
':checked'
);
//slider_value = val_process ? $("#sliderValidation").slider("value") : 0;
...
...
@@ -1316,7 +1315,11 @@ var module_nicho = (function () {
"lim_inf_validation"
:
"2021-06-03"
,
"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.
...
...
@@ -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
);
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
_res_display_module_nicho
.
startResDisplay
(
_map_module_nicho
,
_histogram_module_nicho
,
_table_module
,
_language_module_nicho
,
ids_comp_variables
);
...
...
javascripts/res_display_module.js
View file @
5657cb4e
This diff is collapsed.
Click to expand it.
javascripts/variable_module.js
View file @
5657cb4e
...
...
@@ -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
(
'changed.jstree'
,
self
.
getChangeTreeVarTarget
);
$
(
"#jstree_variables_species_target"
).
on
(
'loaded.jstree'
,
self
.
loadNodes
);
...
...
@@ -759,33 +756,34 @@ var variable_module = (function (verbose, url_zacatuche) {
var
name_class
=
'nav-variables'
;
if
(
id
==
"fuente"
){
if
(
i
==
0
)
{
name_class
=
'active nav-variables'
;
}
var
li
=
$
(
'<li/>'
)
.
addClass
(
name_class
)
.
appendTo
(
nav_items
)
.
click
(
function
(
e
)
{
$
(
'.nav-tabs a[href="'
+
e
.
target
.
getAttribute
(
'href'
)
+
'"]'
).
tab
(
'show'
);
e
.
preventDefault
();
});
var
aaa
=
$
(
'<a/>'
)
.
attr
(
'id'
,
tags
[
i
]
+
"_"
+
id
)
.
attr
(
'href'
,
'#tab'
+
i
+
"_"
+
id
)
.
attr
(
'data-toggle'
,
'tab'
+
i
+
"_"
+
id
)
.
text
(
_iTrans
.
prop
(
tags
[
i
]))
.
appendTo
(
li
);
tags
console
.
log
(
tags
[
i
])
if
(
i
==
0
)
{
name_class
=
'active nav-variables'
;
}
var
li
=
$
(
'<li/>'
)
.
addClass
(
name_class
)
.
appendTo
(
nav_items
)
.
click
(
function
(
e
)
{
console
.
log
(
e
.
target
.
getAttribute
(
'href'
)
)
$
(
'.nav-tabs a[href="'
+
e
.
target
.
getAttribute
(
'href'
)
+
'"]'
).
tab
(
'show'
);
e
.
preventDefault
();
});
var
aaa
=
$
(
'<a/>'
)
.
attr
(
'id'
,
tags
[
i
]
+
"_"
+
id
)
.
attr
(
'href'
,
'#tab'
+
i
+
"_"
+
id
)
.
attr
(
'data-toggle'
,
'tab'
+
i
+
"_"
+
id
)
.
text
(
_iTrans
.
prop
(
tags
[
i
]))
.
appendTo
(
li
);
tags
console
.
log
(
tags
[
i
])
});
}
});
// div que alamcena el cuerpo de los tabs
var
tab_content
=
$
(
'<div/>'
)
...
...
@@ -801,7 +799,7 @@ var variable_module = (function (verbose, url_zacatuche) {
//_VERBOSE ? console.log(tags[i]) : _VERBOSE;
//div del tab[i]_id
var
tab_pane
=
$
(
'<div/>'
)
.
attr
(
'id'
,
'tab'
+
i
+
"_"
+
"
target
"
)
.
attr
(
'id'
,
'tab'
+
i
+
"_"
+
"
fuente
"
)
.
addClass
(
'tab-pane active'
)
.
appendTo
(
tab_content
);
//div id="tab_content_fuente" & class="tab-content"
...
...
@@ -810,7 +808,7 @@ var variable_module = (function (verbose, url_zacatuche) {
.
appendTo
(
drop_item
);
var
btn_sp
=
$
(
'<button/>'
)
.
attr
(
'id'
,
'btn_variable'
+
"_"
+
"
target
"
)
.
attr
(
'id'
,
'btn_variable'
+
"_"
+
"
fuente
"
)
.
attr
(
'type'
,
'button'
)
.
attr
(
'data-toggle'
,
'dropdown'
)
.
attr
(
'aria-haspopup'
,
'true'
)
...
...
@@ -1605,11 +1603,6 @@ var variable_module = (function (verbose, url_zacatuche) {
.
addClass
(
'tab-pane'
)
.
appendTo
(
tab_content
)
// contendor de arbol y panel de seleccion
var
tree_nav_container
=
$
(
'<div/>'
)
.
addClass
(
'row nav_species_container'
)
...
...
@@ -1622,11 +1615,7 @@ var variable_module = (function (verbose, url_zacatuche) {
var
tree
=
$
(
'<div/>'
)
.
attr
(
'id'
,
"jstree_variables_bioclim_"
+
id
)
.
appendTo
(
div_tree
);
.
appendTo
(
div_tree
);
var
btn_add
=
$
(
'<button/>'
)
.
attr
(
'id'
,
'add_group_bioclim'
+
"_"
+
id
)
.
attr
(
'type'
,
'button'
)
...
...
@@ -2487,6 +2476,7 @@ var variable_module = (function (verbose, url_zacatuche) {
for
(
i
=
0
;
i
<
arraySelected
.
length
;
i
++
)
{
console
.
log
(
arraySelected
[
i
])
// se elimita el spp del label cuando es tipo BIO
if
(
typeVar
==
_TYPE_BIO
)
{
...
...
@@ -2502,6 +2492,12 @@ var variable_module = (function (verbose, url_zacatuche) {
}
console
.
log
(
"--------------------------------------------------------------------------------------"
)
console
.
log
(
subgroup
)
console
.
log
(
"--------------------------------------------------------------------------------------"
)
var
groupid
=
parseInt
(
maxGroup
)
+
1
;
console
.
log
(
"maxGroup: "
+
maxGroup
);
console
.
log
(
"groupid: "
+
groupid
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment