Merge branch '1103-Opciones-copiar-cortar-pegar-editor-de-etiquetas-de-la-consola-visual' into 'develop'
Now the label editor color is changed by the mouse scroll - #1103 See merge request artica/pandorafms!802
This commit is contained in:
commit
b96b50129c
|
@ -127,23 +127,17 @@ function visual_map_main() {
|
|||
|
||||
// Begin - Background label color changer
|
||||
|
||||
$( "#text-label_ifr" ).contents().find( "body" ).bind("contextmenu", function(e) {
|
||||
e.preventDefault();
|
||||
$( "#text-label_ifr" ).contents().find( "body" ).bind('mousewheel', function(e){
|
||||
e.preventDefault();
|
||||
|
||||
if($( "#text-label_ifr" ).contents().find( "body" ).css('background-color') == 'rgb(211, 211, 211)'){
|
||||
$( "#text-label_ifr" ).contents().find( "body" ).css('background-color','white');
|
||||
}
|
||||
else{
|
||||
$( "#text-label_ifr" ).contents().find( "body" ).css('background-color','lightgray');
|
||||
}
|
||||
});
|
||||
|
||||
$( "#text-label_ifr" ).contents().find( "body" ).mousedown(function(e){
|
||||
if(e.which == 3)
|
||||
{
|
||||
if($( "#text-label_ifr" ).contents().find( "body" ).css('background-color') == 'rgb(211, 211, 211)'){
|
||||
$( "#text-label_ifr" ).contents().find( "body" ).css('background-color','white');
|
||||
}
|
||||
else{
|
||||
$( "#text-label_ifr" ).contents().find( "body" ).css('background-color','lightgray');
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
// End - Background label color changer
|
||||
|
||||
$('#radiobtn0001').click(function(){
|
||||
|
|
|
@ -187,7 +187,7 @@ function visual_map_editor_print_item_palette($visualConsole_id, $background) {
|
|||
<td align="left" style="">' .
|
||||
html_print_input_text('label', '', '', 20, 200, true) . '
|
||||
<span id="advice_label" style="font-style:italic;z-index:3;display:inline;margin-top:0px;float:right;margin-right:100px;">
|
||||
'.__("Click right mouse button to change the background color of the label editor").'
|
||||
'.__("Scroll the mouse wheel over the label editor to change the background color").'
|
||||
</span>
|
||||
</td>';
|
||||
|
||||
|
|
Loading…
Reference in New Issue