stock changes 21-04-2025
This commit is contained in:
parent
82a18ebb8c
commit
adf9498710
@ -365,9 +365,7 @@
|
|||||||
|
|
||||||
<input type="text" name="month" id="month" value="<?php echo "$month" ?>"
|
<input type="text" name="month" id="month" value="<?php echo "$month" ?>"
|
||||||
class="form-control "
|
class="form-control "
|
||||||
data-provide="datepicker"
|
readonly>
|
||||||
data-date-format="M-yyyy"
|
|
||||||
data-date-min-view-mode="1" readonly>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -1713,8 +1711,7 @@
|
|||||||
$('#changeMonthForm').submit();
|
$('#changeMonthForm').submit();
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).ready(function(){
|
$('#month').datepicker({
|
||||||
$('#month').datepicker({
|
|
||||||
format: 'M-yyyy',
|
format: 'M-yyyy',
|
||||||
viewMode: 'months',
|
viewMode: 'months',
|
||||||
minViewMode: 'months',
|
minViewMode: 'months',
|
||||||
@ -1723,7 +1720,6 @@
|
|||||||
startDate: new Date(2025, 0), // Jan is month 0
|
startDate: new Date(2025, 0), // Jan is month 0
|
||||||
endDate: new Date() // current date as max
|
endDate: new Date() // current date as max
|
||||||
});
|
});
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -327,9 +327,7 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
|||||||
|
|
||||||
<input type="text" name="month" id="month" value="<?php echo "$datefordropdown" ?>"
|
<input type="text" name="month" id="month" value="<?php echo "$datefordropdown" ?>"
|
||||||
class="form-control "
|
class="form-control "
|
||||||
data-provide="datepicker"
|
readonly>
|
||||||
data-date-format="M-yyyy"
|
|
||||||
data-date-min-view-mode="1" readonly>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -1585,11 +1583,23 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
|||||||
|
|
||||||
<!-- onchange of month submit will happen -->
|
<!-- onchange of month submit will happen -->
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
|
||||||
$('#month').change(function() {
|
$(document).on('change', '#month', function() {
|
||||||
$('#changeMonthForm').submit();
|
$('#changeMonthForm').submit();
|
||||||
})
|
});
|
||||||
})
|
|
||||||
|
$('#month').datepicker({
|
||||||
|
format: 'M-yyyy',
|
||||||
|
viewMode: 'months',
|
||||||
|
minViewMode: 'months',
|
||||||
|
autoclose: true,
|
||||||
|
orientation: 'bottom',
|
||||||
|
startDate: new Date(2025, 0), // Jan is month 0
|
||||||
|
endDate: new Date() // current date as max
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@ -362,9 +362,7 @@
|
|||||||
|
|
||||||
<input type="text" name="month" id="month" value="<?php echo "$month" ?>"
|
<input type="text" name="month" id="month" value="<?php echo "$month" ?>"
|
||||||
class="form-control "
|
class="form-control "
|
||||||
data-provide="datepicker"
|
readonly
|
||||||
data-date-format="M-yyyy"
|
|
||||||
data-date-min-view-mode="1" readonly
|
|
||||||
style="max-width: 175px;">
|
style="max-width: 175px;">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -992,13 +990,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$('#month').change(function() {
|
|
||||||
$('#changeMonthForm').submit();
|
|
||||||
})
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$('#month').datepicker({
|
$('#month').datepicker({
|
||||||
format: 'M-yyyy',
|
format: 'M-yyyy',
|
||||||
viewMode: 'months',
|
viewMode: 'months',
|
||||||
minViewMode: 'months',
|
minViewMode: 'months',
|
||||||
@ -1006,9 +1001,15 @@
|
|||||||
orientation: 'bottom',
|
orientation: 'bottom',
|
||||||
startDate: new Date(2025, 0), // Jan is month 0
|
startDate: new Date(2025, 0), // Jan is month 0
|
||||||
endDate: new Date() // current date as max
|
endDate: new Date() // current date as max
|
||||||
|
|
||||||
}).on('focus', function() {
|
}).on('focus', function() {
|
||||||
$(this).datepicker('show'); // Ensure it opens on focus
|
$(this).datepicker('show'); // Ensure it opens on focus
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#month').change(function() {
|
||||||
|
$('#changeMonthForm').submit();
|
||||||
|
})
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -315,6 +315,8 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -353,9 +353,7 @@
|
|||||||
|
|
||||||
<input type="text" name="month" id="month" value="<?php echo "$month" ?>"
|
<input type="text" name="month" id="month" value="<?php echo "$month" ?>"
|
||||||
class="form-control "
|
class="form-control "
|
||||||
data-provide="datepicker"
|
readonly
|
||||||
data-date-format="M-yyyy"
|
|
||||||
data-date-min-view-mode="1" readonly
|
|
||||||
style="max-width: 175px;">
|
style="max-width: 175px;">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -1035,13 +1033,11 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$('#month').change(function() {
|
|
||||||
$('#changeMonthForm').submit();
|
|
||||||
})
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$('#month').datepicker({
|
$('#month').datepicker({
|
||||||
format: 'M-yyyy',
|
format: 'M-yyyy',
|
||||||
viewMode: 'months',
|
viewMode: 'months',
|
||||||
minViewMode: 'months',
|
minViewMode: 'months',
|
||||||
@ -1052,7 +1048,14 @@
|
|||||||
}).on('focus', function() {
|
}).on('focus', function() {
|
||||||
$(this).datepicker('show'); // Ensure it opens on focus
|
$(this).datepicker('show'); // Ensure it opens on focus
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#month').change(function() {
|
||||||
|
$('#changeMonthForm').submit();
|
||||||
|
})
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user