/
README
34 lines (25 loc) · 1.11 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
InPlaceJQueryTimepickr
======================
Simple 2-click in place editing time picker and regular time
picker using jquery.timepickr (v0.6.3) and JQuery (v1.3.1)
See http://haineault.com/media/jquery/ui-timepickr/page/ and
http://code.google.com/p/jquery-utils/
Example:
# Controller
class EventController < ApplicationController
in_place_timepickr_for :event, :start_time
end
# View
<%= in_place_timepickr :event, :start_time %>
# In a form in a View
<%= f.timepickr :start_time %>
# Layout
<%= javascript_include_tag :defaults %>
<%= javascript_include_tag :in_place_jquery_timepickr %>
<%= stylesheet_link_tag :in_place_jquery_timepickr %>
Noted: The generated setters only modify time portion of a value. If using with
other editing (or in place editing) care must taken not to override time when
attempting to only set the date
Copyright (c) 2009 Brian Sam-Bodden <bsbodden@integrallis.com> (Rails Integration)
Copyright (c) 2009 Maxime Haineault <haineault@gmail.com> (JavaScript JQuery Widget)
Released under the MIT license, MIT License (http://www.opensource.org/licenses/mit-license.php