Commit e7212eaa by Billy Larru

arreglando z-index de daterangepicker

parent 64b8ca7a
...@@ -259,4 +259,7 @@ table.display tbody tr:hover td { ...@@ -259,4 +259,7 @@ table.display tbody tr:hover td {
.dataTable thead .sorting_asc:after { .dataTable thead .sorting_asc:after {
content: '' !important; content: '' !important;
} }
\ No newline at end of file
.datepicker{z-index:9999 !important}
.daterangepicker{z-index:9999 !important}
\ No newline at end of file
...@@ -6,6 +6,7 @@ function initDatePicker(selectorName) { ...@@ -6,6 +6,7 @@ function initDatePicker(selectorName) {
changeMonth: true, changeMonth: true,
changeYear: true, changeYear: true,
yearRange: '-18:+0', yearRange: '-18:+0',
zIndexOffset: 3000,
onSelect: function () { onSelect: function () {
// $(this).valid(); // $(this).valid();
} }
...@@ -329,29 +330,19 @@ function mostrarModalNuevoRol() { ...@@ -329,29 +330,19 @@ function mostrarModalNuevoRol() {
backgroundColor: "#fff" backgroundColor: "#fff"
}); });
$("#dpFechaInicio").datepicker({ $("#dpRangoFechas").daterangepicker({
minDate: new Date(2000, 1 - 1, 1), maxDate: new Date(), minDate: new Date(2000, 1 - 1, 1), maxDate: new Date(),
dateFormat: 'dd/mm/yy', dateFormat: 'dd/mm/yy',
defaultDate: new Date(), defaultDate: new Date(),
changeMonth: true, changeMonth: true,
changeYear: true, changeYear: true,
yearRange: '-18:+0', yearRange: '-18:+0',
zIndexOffset: 100000,
onSelect: function () { onSelect: function () {
} }
}); });
$("#dpFechaInicio").datepicker('setDate', 'now'); $("#dpRangoFechas").datepicker('setDate', 'now');
$("#dpFechaFin").datepicker({
minDate: new Date(2000, 1 - 1, 1), maxDate: new Date(),
dateFormat: 'dd/mm/yy',
defaultDate: new Date(),
changeMonth: true,
changeYear: true,
yearRange: '-18:+0',
onSelect: function () {
}
});
$("#dpFechaFin").datepicker('setDate', 'now');
defaultConfigDatePicker(); defaultConfigDatePicker();
defaultConfigDateRangePicker(); defaultConfigDateRangePicker();
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<label>Rango de fechas: </label> <label>Rango de fechas: </label>
<div class="input-group"> <div class="input-group">
<span class="input-group-addon"><i class="icon-calendar22"></i></span> <span class="input-group-addon"><i class="icon-calendar22"></i></span>
<input type="text" class="form-control daterange-basic" value="01/06/2018 - 30/06/2018" id="dpRangoFechas"> <input type="text" class="form-control" value="01/06/2018 - 30/06/2018" id="dpRangoFechas">
</div> </div>
</div> </div>
......
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