fix multi-selection color setting visible/locked to false

This commit is contained in:
David Back 2018-06-22 18:13:40 -07:00
parent b7069fff71
commit 09ccd3acf0
2 changed files with 4 additions and 5 deletions

View file

@ -2027,12 +2027,8 @@ var PropertiesTool = function (opts) {
} else if (data.type === "update") {
selectionManager.saveProperties();
if (selectionManager.selections.length > 1) {
properties = {
locked: data.properties.locked,
visible: data.properties.visible
};
for (i = 0; i < selectionManager.selections.length; i++) {
Entities.editEntity(selectionManager.selections[i], properties);
Entities.editEntity(selectionManager.selections[i], data.properties);
}
} else if (data.properties) {
if (data.properties.dynamic === false) {

View file

@ -269,6 +269,9 @@ For usage and examples: colpick.com/plugin
},
// Show/hide the color picker
show = function (ev) {
if ($(this).attr('disabled')) {
return;
}
// Prevent the trigger of any direct parent
ev.stopPropagation();
var cal = $('#' + $(this).data('colpickId'));