h3 / jquery-utils

Automatically exported from code.google.com/p/jquery-utils
MIT License
0 stars 0 forks source link

remove APM-selector-btns in 24h mode and set a time range to select #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download jquery.timepickr-0.7.0a-standalone.zip
2. Add datepickr to a page using files from the dist/ folder
3. especially use jquery.timepickr.js
4. set up a page with ..timepickr();

What is the expected output? What do you see instead?
normal output, as expected.

idea: i want to have a selector, where i can pick a time out of a selected
range.

What version of the product are you using? On what operating system?
0.7.0a XP

Please provide any additional information below.

I modified some lines in jquery.timepickr.js to pick time out of a 
as in 24h mode the prefix is strictly required, I changed to 12h mode and
deleted am/pm suffix, now it looks like 24h mode where you can select
different times out of 24h mode.

   a) line#1206: convention: 24, //instead of 24
   b) line#1208: format12:    '{h:02.d}:{m:02.d}', //to remove the display
error, well there are other fixes, but i want to emulate 24h mode, so i
don't need this suffix
  c) line#1316: commented this line to prevent rendering of the suffix-row

this works fine for me...

Original issue reported on code.google.com by malte....@gmail.com on 11 Mar 2010 at 11:45

GoogleCodeExporter commented 9 years ago
ok...i forgot smth:

d) line#1215 rangeHour12: $.range(10, 15), //change the range to your will

Original comment by malte....@gmail.com on 11 Mar 2010 at 1:33