prvi
This commit is contained in:
68
EveryThing/wwwroot/js/inputs.js
Normal file
68
EveryThing/wwwroot/js/inputs.js
Normal file
@@ -0,0 +1,68 @@
|
||||
// Bootstrap Material DateTimePicker
|
||||
$(function() {
|
||||
$('.dtp-datetime').bootstrapMaterialDatePicker({
|
||||
weekStart: 1,
|
||||
format: 'DD.MM.YYYY HH:mm',
|
||||
shortTime: false,
|
||||
nowButton: true,
|
||||
clearButton: true,
|
||||
lang: "sl",
|
||||
minDate: new Date(),
|
||||
cancelText: 'Prekliči',
|
||||
okText: 'OK',
|
||||
nowText: 'Trenutno',
|
||||
clearText: 'Počisti'
|
||||
});
|
||||
|
||||
$('.dtp-datenotime').bootstrapMaterialDatePicker({
|
||||
weekStart: 1,
|
||||
format: 'DD.MM.YYYY',
|
||||
shortTime: false,
|
||||
nowButton: true,
|
||||
clearButton: true,
|
||||
lang: "sl",
|
||||
minDate: new Date(1900, 1, 1),
|
||||
cancelText: 'Prekliči',
|
||||
okText: 'OK',
|
||||
nowText: 'Trenutno',
|
||||
clearText: 'Počisti',
|
||||
time: false
|
||||
});
|
||||
});
|
||||
|
||||
// Bootstrap Modal
|
||||
$('#modal-placeholder').on('shown.bs.modal',
|
||||
function() {
|
||||
$('.dtp-datetime').bootstrapMaterialDatePicker({
|
||||
weekStart: 1,
|
||||
format: 'DD.MM.YYYY HH:mm',
|
||||
shortTime: false,
|
||||
nowButton: true,
|
||||
clearButton: true,
|
||||
lang: "sl",
|
||||
minDate: new Date(),
|
||||
cancelText: 'Prekliči',
|
||||
okText: 'OK',
|
||||
nowText: 'Trenutno',
|
||||
clearText: 'Počisti'
|
||||
});
|
||||
|
||||
$('.dtp-date').bootstrapMaterialDatePicker({
|
||||
weekStart: 1,
|
||||
format: 'DD.MM.YYYY',
|
||||
shortTime: false,
|
||||
nowButton: true,
|
||||
clearButton: true,
|
||||
lang: "sl",
|
||||
minDate: new Date(),
|
||||
cancelText: 'Prekliči',
|
||||
okText: 'OK',
|
||||
nowText: 'Trenutno',
|
||||
clearText: 'Počisti'
|
||||
});
|
||||
});
|
||||
|
||||
// Bootstrap Select
|
||||
$(function () {
|
||||
$('.selectpicker').selectpicker();
|
||||
});
|
||||
Reference in New Issue
Block a user