mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Merge branch 'ent-11221-15587-se-visualizan-componentes-de-otros-grupos' into 'develop'
Ent 11221 15587 se visualizan componentes de otros grupos See merge request artica/pandorafms!5917
This commit is contained in:
commit
59a4920877
@ -1339,7 +1339,11 @@ class ModuleTemplates extends HTML
|
||||
function filterGroupComponents(e){
|
||||
var selectedGroup = e.target.value;
|
||||
var entireList = JSON.parse($('#hidden-group-components').val());
|
||||
var componentsToShow = entireList[selectedGroup];
|
||||
if(typeof entireList[selectedGroup] !== 'undefined'){
|
||||
var componentsToShow = entireList[selectedGroup].split(",");
|
||||
} else {
|
||||
var componentsToShow = [];
|
||||
}
|
||||
$('#add-modules-components').children().each(function(){
|
||||
var id = $(this).val();
|
||||
if (typeof componentsToShow === 'undefined' && selectedGroup != '0') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user