Commit 44c06b9e by gema

menu personalizado, doble click se puedan deseleccionar ambas opciones

parent f73e3979
......@@ -48,7 +48,7 @@
<div class="row">
{#comida#}
<div class="col-md-6">
<h2 class="color-menu-personalizado">COMIDA </h2>
<h2 class="color-menu-personalizado">COMIDA</h2>
<div class="border-box border-menu-personalizado-light">
<div class="title-box-border-box bg-color-menu-personalizado-light">
......@@ -57,7 +57,7 @@
<div class="container-box-border-box">
<form class="ac-custom ac-radio ac-fill" autocomplete="off">
<a href="{{ url('receta-detalle/update/'~day.lunchFirst[0].id) }}" target="_blank">
<a href="{{ url('receta-detalle/update/'~day.lunchFirst[0].id) }}" >
<div class="row">
<div class="col-xs-11 plr0">
<input {% if model_Recipe.exist_recipe(day.lunchFirst[0].id) %} checked {% endif %}
......@@ -74,7 +74,7 @@
</div>
</div>
</a>
<a href="{{ url('receta-detalle/update/'~day.lunchFirst[1].id) }}" target="_blank">
<a href="{{ url('receta-detalle/update/'~day.lunchFirst[1].id) }}" >
<div class="row mt20">
<div class="col-xs-11 plr0">
<input {% if model_Recipe.exist_recipe(day.lunchFirst[1].id) %} checked {% endif %}
......@@ -103,7 +103,7 @@
<div class="container-box-border-box">
<form class="ac-custom ac-radio ac-fill" autocomplete="off">
<a href="{{ url('receta-detalle/update/'~day.lunchSecond[0].id) }}" target="_blank">
<a href="{{ url('receta-detalle/update/'~day.lunchSecond[0].id) }}" >
<div class="row">
<div class="col-xs-11 plr0">
<input {% if model_Recipe.exist_recipe(day.lunchSecond[0].id) %} checked {% endif %}
......@@ -121,7 +121,7 @@
</div>
</div>
</a>
<a href="{{ url('receta-detalle/update/'~day.lunchSecond[1].id) }}" target="_blank">
<a href="{{ url('receta-detalle/update/'~day.lunchSecond[1].id) }}" >
<div class="row mt20">
<div class="col-xs-11 plr0">
<input {% if model_Recipe.exist_recipe(day.lunchSecond[1].id) %} checked {% endif %}
......@@ -154,7 +154,7 @@
<div class="container-box-border-box">
<form class="ac-custom ac-radio ac-fill" autocomplete="off">
<a href="{{ url('receta-detalle/update/'~day.dinnerFirst[0].id) }}" target="_blank">
<a href="{{ url('receta-detalle/update/'~day.dinnerFirst[0].id) }}" >
<div class="row">
<div class="col-xs-11 plr0">
<input {% if model_Recipe.exist_recipe(day.dinnerFirst[0].id) %} checked {% endif %}
......@@ -172,7 +172,7 @@
</div>
</div>
</a>
<a href="{{ url('receta-detalle/update/'~day.dinnerFirst[1].id) }}" target="_blank">
<a href="{{ url('receta-detalle/update/'~day.dinnerFirst[1].id) }}">
<div class="row mt20">
<div class="col-xs-11 plr0">
<input {% if model_Recipe.exist_recipe(day.dinnerFirst[1].id) %} checked {% endif %}
......@@ -201,7 +201,7 @@
<div class="container-box-border-box">
<form class="ac-custom ac-radio ac-fill" autocomplete="off">
<a href="{{ url('receta-detalle/update/'~day.dinnerSecond[0].id) }}" target="_blank">
<a href="{{ url('receta-detalle/update/'~day.dinnerSecond[0].id) }}" >
<div class="row">
<div class="col-xs-11 plr0">
<input {% if model_Recipe.exist_recipe(day.dinnerSecond[0].id) %} checked {% endif %}
......@@ -219,7 +219,7 @@
</div>
</div>
</a>
<a href="{{ url('receta-detalle/update/'~day.dinnerSecond[1].id) }}" target="_blank">
<a href="{{ url('receta-detalle/update/'~day.dinnerSecond[1].id) }}" >
<div class="row mt20">
<div class="col-xs-11 plr0">
<input {% if model_Recipe.exist_recipe(day.dinnerSecond[1].id) %} checked {% endif %}
......@@ -247,7 +247,8 @@
{% endfor %}
<div class="row">
<div class="col-md-6 col-md-offset-6">
<div class="col-md-6"><p class="mt20">*Puedes desmarcar ambas opciones de plato (si así lo quisieras) haciendo doble clic sobre el que queda marcado.</p></div>
<div class="col-md-6 ">
<button class="btn btn-custom btn-menu-personalizado-light mt20" data-toggle="modal" data-target="#modalRecomendaciones"> Resto del día <i class="fa fa-angle-double-right"></i> </button>
</div>
</div>
......
$(document).ready(function() {
$('.save-menu').on('click', function () {
var inputs = [];
......@@ -40,4 +43,17 @@ $(document).ready(function() {
});
//con doble click se deshabliliten todas opciones de radiobutton
$(':radio').dblclick(function(e){
var $self = $(this);
if( $self.is(':checked') ){
$self.removeAttr('checked');
$self.next().next().find("path").remove();
};
});
});
\ No newline at end of file
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