Skip to content

Commit

Permalink
fix groupid issue
Browse files Browse the repository at this point in the history
  • Loading branch information
LPoin committed Dec 4, 2024
1 parent 5903374 commit acb1bd8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/mviewerstudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,14 +416,18 @@ var addGroup = (themeid, title, groupId) => {
return item;
};

var editLayer = function (item, themeid, layerid, groupid) {
var editLayer = function (item, themeid, layerid) {
mv.setCurrentThemeId(themeid);
mv.setCurrentLayerId(layerid);

var element = $(item).parent().parent();
element.addClass("active");
if (!layerid) {
layerid = element.attr("data-layerid");
}
var groupid = element.attr("data-groupid");
mv.setCurrentGroupId(groupid);

if (layerid != "undefined") {
$("#mod-layerOptions").modal("show");
mv.showLayerOptions(element, themeid, layerid, groupid);
Expand Down

0 comments on commit acb1bd8

Please sign in to comment.