only show text background color picker if text tool is active
This commit is contained in:
parent
2868d27288
commit
5bf39fe008
@ -134,7 +134,11 @@
|
|||||||
<button tool="text" title="write text" type="button" class="whiteboard-tool">
|
<button tool="text" title="write text" type="button" class="whiteboard-tool">
|
||||||
<i class="fas fa-font"></i>
|
<i class="fas fa-font"></i>
|
||||||
</button>
|
</button>
|
||||||
<button title="text background-color">
|
<button
|
||||||
|
id="textboxBackgroundColorPickerBtn"
|
||||||
|
style="display: none"
|
||||||
|
title="text background-color"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
id="textboxBackgroundColorPicker"
|
id="textboxBackgroundColorPicker"
|
||||||
style="
|
style="
|
||||||
@ -142,6 +146,9 @@
|
|||||||
height: 23px;
|
height: 23px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
border: 1px solid darkgrey;
|
border: 1px solid darkgrey;
|
||||||
|
left: -4px;
|
||||||
|
top: -2px;
|
||||||
|
position: relative;
|
||||||
"
|
"
|
||||||
data-color="#f5f587"
|
data-color="#f5f587"
|
||||||
></div>
|
></div>
|
||||||
|
@ -304,6 +304,12 @@ function initWhiteboard() {
|
|||||||
} else {
|
} else {
|
||||||
$(".activeToolIcon").html($(this).html()); //Set Active icon the same as the button icon
|
$(".activeToolIcon").html($(this).html()); //Set Active icon the same as the button icon
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (activeTool == "text") {
|
||||||
|
$("#textboxBackgroundColorPickerBtn").show();
|
||||||
|
} else {
|
||||||
|
$("#textboxBackgroundColorPickerBtn").hide();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// upload image button
|
// upload image button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user