anjlab-widgets 1.0.5 → 1.0.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e13bc52c946545dc3291cfad666b4eb71b55232c
|
4
|
+
data.tar.gz: 3e61c63298c23c303ab6e21b26d84914ecee91dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fcc0fbf6b23055753622fe063c5737b13c19b6d2fcf09d39b9360ee7dac252fc22813ceb54a38d84189aea47421bf96bf16853b6675fe4dfbb6bec5bd8ec995
|
7
|
+
data.tar.gz: ac941334ace451a36138c544b3ef7b5d8f8bfbe2934c3c467b78cf9e8de1c0a8b7186de6d86a10ca00312bbedd25ac8ac208ec3f2005b9979203dbc78240d0a6
|
@@ -291,9 +291,11 @@ class Datepicker extends NativeRailsDatepicker
|
|
291
291
|
d = new Date(@viewDate)
|
292
292
|
year = d.getFullYear()
|
293
293
|
month = d.getMonth()
|
294
|
+
todayDate = DateTools.today()
|
295
|
+
today = todayDate.valueOf()
|
294
296
|
|
295
297
|
@updateRails()
|
296
|
-
date = if @date != null then @date else
|
298
|
+
date = if @date != null then @date else todayDate
|
297
299
|
currentDate = if @date != null then @date.valueOf() else 0
|
298
300
|
|
299
301
|
@picker.find('.datepicker-days th:eq(1)').text(Locales[@locale].dates.months[month]+' '+year)
|
@@ -315,6 +317,9 @@ class Datepicker extends NativeRailsDatepicker
|
|
315
317
|
else if prevMonth.getMonth() > month
|
316
318
|
clsName += ' new'
|
317
319
|
|
320
|
+
if prevMonth.valueOf() == today
|
321
|
+
clsName += ' today'
|
322
|
+
|
318
323
|
if prevMonth.valueOf() == currentDate
|
319
324
|
clsName += ' active'
|
320
325
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anjlab-widgets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yury Korolev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: anjlab-bootstrap-rails
|