anjlab-widgets 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dce23c07ae07ffad959a9bdfaa5cd06d87c6acd4
|
|
4
|
+
data.tar.gz: 9c2b951f3394d1ee02661af03eec23e3a769c6aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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:
|
|
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
|
-
|
|
295
|
-
today = todayDate.valueOf()
|
|
295
|
+
today = DateTools.today().valueOf()
|
|
296
296
|
|
|
297
297
|
@updateRails()
|
|
298
|
-
date = if @date != null then @date else
|
|
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);
|