Skip to content

Commit d4cbdcb

Browse files
committed
Merge pull request #1 from trentrichardson/master
Update
2 parents 69348fd + ecc41f9 commit d4cbdcb

File tree

106 files changed

+942
-285
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+942
-285
lines changed

Gruntfile.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ module.exports = function(grunt) {
107107
options: {
108108
specs: 'test/*_spec.js',
109109
vendor: [
110-
'http://code.jquery.com/jquery-1.10.1.min.js',
111-
'http://code.jquery.com/ui/1.10.3/jquery-ui.min.js',
110+
'http://code.jquery.com/jquery-1.11.1.min.js',
111+
'http://code.jquery.com/ui/1.11.1/jquery-ui.min.js',
112112
'http://github.com/searls/jasmine-fixture/releases/1.0.5/1737/jasmine-fixture.js'
113113
]
114114
}
@@ -162,6 +162,9 @@ module.exports = function(grunt) {
162162
grunt.loadNpmTasks('grunt-contrib-watch');
163163

164164
// Default task.
165-
grunt.registerTask('default', ['jshint', 'jasmine', 'clean', 'copy', 'concat', 'replace', 'uglify', 'cssmin']);
165+
grunt.registerTask('default', ['clean', 'copy', 'concat', 'replace', 'uglify', 'cssmin']);
166+
167+
// Test task.
168+
grunt.registerTask('test', ['jshint', 'jasmine']);
166169

167170
};

README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,35 @@ Use
1212
I recommend getting the eBook [Handling Time](https://sellfy.com/p/8gxZ) as it has a lot of example code to get started. The quick and dirty:
1313

1414
- To use this plugin you must include jQuery (1.6+) and jQuery UI with datepicker (and optionally slider).
15-
- Include timepicker-addon script located in the `dist` directory.
15+
- Include timepicker-addon script and css located in the `dist` directory or from a CDN:
16+
* [http://cdnjs.com/libraries/jquery-ui-timepicker-addon](http://cdnjs.com/libraries/jquery-ui-timepicker-addon)
17+
* [http://www.jsdelivr.com/#!jquery.ui.timepicker.addon](http://www.jsdelivr.com/#!jquery.ui.timepicker.addon)
1618
- now use timepicker with `$('#selector').datetimepicker()` or `$('#selector').timepicker()`.
1719

1820
There is also a [Bower](http://bower.io/) package named `jqueryui-timepicker-addon`. Beware there are other similar package names that point to forks which may not be current.
1921

22+
Rails with Bower
23+
-----------------
24+
If you happen to use Rails with the [bower](gem "bower-rails", "~> 0.8.3") gem, here it is to use it easily :
25+
#### Bowerfile
26+
```asset "jqueryui-timepicker-addon", "1.5.4"```
27+
28+
#### application.js
29+
```javascript
30+
//= require jqueryui-timepicker-addon/dist/jquery-ui-timepicker-addon
31+
//= require jqueryui-timepicker-addon/dist/i18n/jquery-ui-timepicker-fr
32+
```
33+
34+
#### application.css.scss
35+
```scss
36+
@import "jqueryui-timepicker-addon/dist/jquery-ui-timepicker-addon.css";
37+
```
38+
2039
Contributing Code - Please Read!
2140
--------------------------------
2241
- All code contributions and bug reports are much appreciated.
2342
- Please be sure to apply your fixes to the "dev" branch.
2443
- Also note tabs are appreciated over spaces.
2544
- Please read the [CONTRIBUTING.md][contributingmd] for more on using Grunt to produce builds.
2645

27-
[contributingmd]: CONTRIBUTING.md
46+
[contributingmd]: CONTRIBUTING.md

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "jqueryui-timepicker-addon",
3-
"version": "1.4.4",
3+
"version": "1.5.5",
44
"repository": {
55
"type": "git",
66
"url": "git://github.com/trentrichardson/jQuery-Timepicker-Addon.git"
77
},
8+
"main": ["dist/jquery-ui-timepicker-addon.js", "dist/jquery-ui-timepicker-addon.css"],
89
"dependencies": {
9-
"jquery-ui": ">=1.9.2"
1010
}
1111
}

0 commit comments

Comments
 (0)