anjlab-widgets 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e13bc52c946545dc3291cfad666b4eb71b55232c
4
- data.tar.gz: 3e61c63298c23c303ab6e21b26d84914ecee91dd
3
+ metadata.gz: dce23c07ae07ffad959a9bdfaa5cd06d87c6acd4
4
+ data.tar.gz: 9c2b951f3394d1ee02661af03eec23e3a769c6aa
5
5
  SHA512:
6
- metadata.gz: 3fcc0fbf6b23055753622fe063c5737b13c19b6d2fcf09d39b9360ee7dac252fc22813ceb54a38d84189aea47421bf96bf16853b6675fe4dfbb6bec5bd8ec995
7
- data.tar.gz: ac941334ace451a36138c544b3ef7b5d8f8bfbe2934c3c467b78cf9e8de1c0a8b7186de6d86a10ca00312bbedd25ac8ac208ec3f2005b9979203dbc78240d0a6
6
+ metadata.gz: bf80d6538c01a24730ef51b4068a16349d2bb19106d35427a07808ed68d7d50e672ddd66f55e5fb624ffb2b32a49fc88ba15f5c64d786181f96481fdf02e01e8
7
+ data.tar.gz: a49971d2a010d826d56fc6b8747ba9c7f89031c7c0842189c8dde65e1acc700e59c36154a6ad7c0f694b1ddce3f5d56c6252db83e550ce8d4dc64ff3acaeb2dc
@@ -192,7 +192,7 @@ class Datepicker extends NativeRailsDatepicker
192
192
  @element.on {
193
193
  focus: $.proxy(@show, this)
194
194
  click: $.proxy(@show, this)
195
- blur: $.proxy(@hide, this)
195
+ blur: $.proxy(@hide, this)
196
196
  keyup: $.proxy(@update, this)
197
197
  }
198
198
  else
@@ -261,9 +261,10 @@ class Datepicker extends NativeRailsDatepicker
261
261
  @date = DateTools.today()
262
262
 
263
263
  if @date != null
264
- @viewDate = @date
264
+ @viewDate = new Date(@date)
265
265
  else
266
266
  @viewDate = DateTools.today()
267
+
267
268
  @fill()
268
269
 
269
270
  fillDow: ->
@@ -291,11 +292,10 @@ class Datepicker extends NativeRailsDatepicker
291
292
  d = new Date(@viewDate)
292
293
  year = d.getFullYear()
293
294
  month = d.getMonth()
294
- todayDate = DateTools.today()
295
- today = todayDate.valueOf()
295
+ today = DateTools.today().valueOf()
296
296
 
297
297
  @updateRails()
298
- date = if @date != null then @date else todayDate
298
+ date = if @date != null then @date else DateTools.today()
299
299
  currentDate = if @date != null then @date.valueOf() else 0
300
300
 
301
301
  @picker.find('.datepicker-days th:eq(1)').text(Locales[@locale].dates.months[month]+' '+year)
@@ -376,7 +376,6 @@ class Datepicker extends NativeRailsDatepicker
376
376
  month -= 1
377
377
  else if target.is('.new')
378
378
  month += 1
379
-
380
379
  year = @viewDate.getFullYear()
381
380
  @date = new Date(year, month, day,0,0,0,0);
382
381
  @viewDate = new Date(year, month, day,0,0,0,0);
@@ -1,5 +1,5 @@
1
1
  module Anjlab
2
2
  module Widgets
3
- VERSION = "1.0.6"
3
+ VERSION = "1.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anjlab-widgets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Korolev