Commit a7a8d520 authored by Luis Dominguez's avatar Luis Dominguez

Boton perfil de mapas, desplazamiento al abrirse el showProductTabPane

parent e1357762
...@@ -43,9 +43,9 @@ html, body ...@@ -43,9 +43,9 @@ html, body
width: 50px; width: 50px;
height: 50px; height: 50px;
position: absolute; position: absolute;
right: 20px; right: 20px; /*270px*/
bottom: 15px; bottom: 15px;
z-index: 100; z-index: 1000;
background-color: white; background-color: white;
border-radius: 5px; border-radius: 5px;
border: none; border: none;
......
...@@ -393,6 +393,7 @@ function showProductTabPane() { ...@@ -393,6 +393,7 @@ function showProductTabPane() {
$('#control-sidebar-settings-tab').removeClass("active"); $('#control-sidebar-settings-tab').removeClass("active");
$('#control-sidebar-home-tab').addClass("active"); $('#control-sidebar-home-tab').addClass("active");
$('aside').addClass("control-sidebar-open"); $('aside').addClass("control-sidebar-open");
moveLayer();
} }
function showCarProductsTabPanel(){ function showCarProductsTabPanel(){
...@@ -545,7 +546,7 @@ $(document).ready(function () { ...@@ -545,7 +546,7 @@ $(document).ready(function () {
}); });
} else { } else {
noData(); noData(); //activa la alerta
hideWaitingModal(); hideWaitingModal();
$('aside').removeClass("control-sidebar-open"); $('aside').removeClass("control-sidebar-open");
//Comenté la siguiente funcion porque causaba error al ser llamada y no aportaba al algun cambio al proyecto //Comenté la siguiente funcion porque causaba error al ser llamada y no aportaba al algun cambio al proyecto
...@@ -672,3 +673,18 @@ $(document).ready(function () { ...@@ -672,3 +673,18 @@ $(document).ready(function () {
} }
}); });
}); });
var imc = true;
function moveLayer() {
if(imc){
setTimeout(function() {
document.getElementById("idmapControl").style.right = "290px";
},500)
imc = false
}else{
setTimeout(function() {
document.getElementById("idmapControl").style.right = "20px";
},500)
imc = true
}
}
...@@ -100,8 +100,8 @@ ...@@ -100,8 +100,8 @@
{% else %} {% else %}
<li id="panelShowCart"> <li id="panelShowCart">
{% if showcart %} {% if showcart %}
<a id="product-list-toggle" href="#" data-toggle="control-sidebar"><i <a id="product-list-toggle" href="#" data-toggle="control-sidebar" onclick = "moveLayer()" >
class="fa fa-shopping-cart"></i></a> <i class="fa fa-shopping-cart"></i></a>
{% endif %} {% endif %}
</li> </li>
{% endif %} {% endif %}
......
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
<!-- <div class="ad"> </div> --> <!-- <div class="ad"> </div> -->
<!-- control de version de mapas --> <!-- control de version de mapas -->
<div class="mapControl" onclick="cambio.changeMap()"> <div id="idmapControl" class="mapControl" onclick="cambio.changeMap()">
<i class="fas fa-layer-group fa-2x iii"></i> <i class="fas fa-layer-group fa-2x iii"></i>
</div> </div>
<!-- control de version de mapas --> <!-- control de version de mapas -->
......
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