#se-input elem_class input modified to se-input

master
Agriya Dev5 2020-11-17 14:05:57 +05:30
parent f21f7deb88
commit 718745a8f4
2 changed files with 3 additions and 11 deletions

View File

@ -147,17 +147,8 @@
<se-button id="tool_reorient" title="Reorient path" src="./images/reorient.svg"></se-button>
<se-button id="tool_make_link" title="Make (hyper)link" src="./images/globe_link.png"></se-button>
<div class="tool_sep"></div>
<!-- <label id="idLabel" title="Identify the element">
<span>id:</span>
<input id="elem_id" class="attr_changer" data-attr="id" size="10" type="text" />
</label> -->
<se-input id="elem_id" data-attr="id" inputsize="70%" type="text" label="id:"></se-input>
<label id="classLabel" title="Element class">
<span>class:</span>
<input id="elem_class" class="attr_changer" data-attr="class" size="10" type="text" />
</label>
<se-input id="elem_class" data-attr="class" inputsize="70%" type="text" label="class:"></se-input>
</div>
<label id="tool_angle" title="Change rotation angle" class="toolset">
<span id="angleLabel" class="icon_label"></span>

View File

@ -1889,7 +1889,7 @@ editor.init = () => {
$('#group_opacity').val(opacPerc);
$('#opac_slider').slider('option', 'value', opacPerc);
$id('elem_id').value = selectedElement.id;
$('#elem_class').val(selectedElement.getAttribute('class'));
$id('elem_class').value = (selectedElement.getAttribute('class') !== null) ? selectedElement.getAttribute('class') : '';
}
updateToolButtonState();
@ -4900,6 +4900,7 @@ editor.init = () => {
// register actions for bottom panel
$id('zoom').addEventListener('change', (e) => changeZoom(Number(e.target.value)));
$id('elem_id').addEventListener('change', (e) => attrChanger(e));
$id('elem_class').addEventListener('change', (e) => attrChanger(e));
// register actions for layer toolbar
$id('layer_new').addEventListener('click', newLayer);