Gitlab CSE Unil

Commit 5909d58b authored by M. Chardon's avatar M. Chardon
Browse files

bug affichage couleur cartouche par défaut

parent 446bdecf
This diff is collapsed.
......@@ -622,10 +622,10 @@ define(['jquery', 'jqueryui', 'core/notification', 'core/templates', 'core/fragm
currentTool.colors = null;
}
currentTool.cartridge = $("#libelle").val();
if ($("#realcartridgecolor").val().length > 0) {
if ($("#realcartridgecolor").val() && $("#realcartridgecolor").val().length > 0) {
currentTool.cartridgeColor = $("#cartridgecolor").val();
} else {
$("#cartridgecolor").val(typetoolEntity.cartridge_color);
$("#cartridgecolor").val(typetoolEntity.get_color_cartridge());
currentTool.cartridgeColor = null;
}
currentTool.texts = $("#texts").val();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment