dorsale 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1,3 @@
1
+ //= require bootstrap-datepicker/core
2
+ //= require bootstrap-datepicker/locales/bootstrap-datepicker.fr
1
3
  //= require_tree .
@@ -0,0 +1,10 @@
1
+ $(document).on "ready page:load", ->
2
+ $("input[type*=date], input[name*=date]").map ->
3
+ this.type = "text"
4
+
5
+ if this.value.match("-")
6
+ date = this.value.split("-")
7
+ this.value = date[2] + "/" + date[1] + "/" + date[0]
8
+
9
+ $(this).datepicker
10
+ language: "fr"
@@ -2,6 +2,7 @@
2
2
  @import bootstrap
3
3
  @import font-awesome-sprockets
4
4
  @import font-awesome
5
+ @import bootstrap-datepicker3
5
6
 
6
7
  @import dorsale/comments
7
8
  @import dorsale/contexts
@@ -9,6 +9,7 @@ require "jquery-rails"
9
9
  require "kaminari"
10
10
  require "turbolinks"
11
11
  require "bootstrap-kaminari-views"
12
+ require "bootstrap-datepicker-rails"
12
13
 
13
14
  require "rails-i18n"
14
15
  require "cancan"
@@ -1,3 +1,3 @@
1
1
  module Dorsale
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorsale
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
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: 2015-04-23 00:00:00.000000000 Z
12
+ date: 2015-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -267,6 +267,22 @@ dependencies:
267
267
  - - ! '>='
268
268
  - !ruby/object:Gem::Version
269
269
  version: '0'
270
+ - !ruby/object:Gem::Dependency
271
+ name: bootstrap-datepicker-rails
272
+ requirement: !ruby/object:Gem::Requirement
273
+ none: false
274
+ requirements:
275
+ - - ! '>='
276
+ - !ruby/object:Gem::Version
277
+ version: '0'
278
+ type: :runtime
279
+ prerelease: false
280
+ version_requirements: !ruby/object:Gem::Requirement
281
+ none: false
282
+ requirements:
283
+ - - ! '>='
284
+ - !ruby/object:Gem::Version
285
+ version: '0'
270
286
  description: Run your own business.
271
287
  email:
272
288
  - contact@agilidee.com
@@ -276,6 +292,7 @@ extra_rdoc_files: []
276
292
  files:
277
293
  - app/assets/images/dorsale/avatar.png
278
294
  - app/assets/javascripts/dorsale/all.js
295
+ - app/assets/javascripts/dorsale/datepicker.coffee
279
296
  - app/assets/javascripts/dorsale/forms.coffee
280
297
  - app/assets/javascripts/dorsale/tabs_loader.coffee
281
298
  - app/assets/stylesheets/dorsale/all.sass
@@ -381,7 +398,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
381
398
  version: '0'
382
399
  segments:
383
400
  - 0
384
- hash: 3554020040667080684
401
+ hash: -4393440781710006734
385
402
  required_rubygems_version: !ruby/object:Gem::Requirement
386
403
  none: false
387
404
  requirements:
@@ -390,7 +407,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
390
407
  version: '0'
391
408
  segments:
392
409
  - 0
393
- hash: 3554020040667080684
410
+ hash: -4393440781710006734
394
411
  requirements: []
395
412
  rubyforge_project:
396
413
  rubygems_version: 1.8.23.2