happydatepicker 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Happydatepicker
2
2
 
3
- A simple but ready-made datepicker for rails. Based upon http://www.eyecon.ro/datepicker
3
+ A simple but ready-made datepicker for rails. Basically a wrapper around this js datepicker: http://www.eyecon.ro/datepicker
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,18 +18,21 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- in application.js you need to require:
21
+ in application.js you need:
22
22
 
23
- //=require datepicker
24
- //=require happydatepicker
23
+ //=require datepicker
24
+ //=require happydatepicker
25
25
 
26
26
  in application.css you need to include
27
- *=require datepicker.css
28
27
 
29
- From within your coffeescript file just do as follows:
28
+ *=require datepicker.css
30
29
 
31
- new HappyDatePicker($("#your_element"))
30
+ Requiring the happydatepicker in application.js is completely optional but if you do you can instantiate a datepicker within your coffeescript file as simply as:
32
31
 
32
+ new HappyDatePicker($("#your_element"))
33
+
34
+ Otherwise you can use the default js syntax for doing everything as explained here: http://www.eyecon.ro/datepicker
35
+
33
36
  ## Contributing
34
37
 
35
38
  1. Fork it
@@ -1,5 +1,5 @@
1
1
  module Happydatepicker
2
2
  module Rails
3
- VERSION = "0.0.12"
3
+ VERSION = "0.0.13"
4
4
  end
5
5
  end
@@ -2,6 +2,7 @@ class @HappyDatePicker
2
2
 
3
3
  constructor: (element) ->
4
4
  $(element).DatePicker
5
+ format:'m/d/Y'
5
6
  flat: false
6
7
  date: new Date()
7
8
  current: new Date()
@@ -9,4 +10,4 @@ class @HappyDatePicker
9
10
  starts: 1
10
11
  onChange: (formated, dates) ->
11
12
  $(element).val formated
12
- $(element).DatePickerHide()
13
+ $(element).DatePickerHide()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: happydatepicker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-25 00:00:00.000000000 Z
12
+ date: 2012-09-22 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A simple datepicker ready for rails
15
15
  email: