clockpicker
clockpicker copied to clipboard
AM as a default in tweleve hour mode
Hi is there a simple way to define AM
as a default in twelve hour mode?
I managed to do it with laravel-elixir-replace by replacing setAMorPM("pm")
with setAMorPM("am")
but I was wondering if there is a nicer way to do it.
If not maybe just to add an option like:
amPmDefault: "am"
and then replace
setAMorPM("pm")
with
setAMorPM(this.options.amPmDefault)
and probably a check somewhere before would be nice:
(this.options.amPmDefault == "am" || this.options.amPmDefault == "pm") ? let amPmOption = this.options.amPmDefault : let amPmOption = "pm";
I'm not very good at js so hopefully the syntax is correct.
Also it's possible I missed something as I found what to replace by searching for pm
in source and then by trial and error.