mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-05 16:23:24 +02:00
Fixes #1362 If duplicated group has little star the new group has the star too.
This commit is contained in:
@@ -442,6 +442,12 @@ var duplicateAction = function(id) {
|
|||||||
groupbox.insertAfter($("#group-"+id));
|
groupbox.insertAfter($("#group-"+id));
|
||||||
setupGroupBox(groupbox);
|
setupGroupBox(groupbox);
|
||||||
updateBadge();
|
updateBadge();
|
||||||
|
|
||||||
|
/* data.result.groups[0].is_default is a string */
|
||||||
|
if(data.result.groups[0].is_default == "true") {
|
||||||
|
console.log('here: ' +id);
|
||||||
|
setupDefaultActions(data.result.groups[0].id, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function (err) {
|
error: function (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user