anjlab-widgets 1.0.5 → 1.0.6

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: 5b69f47abeaf7b61bdb221c7a3509fddafabf892
4
- data.tar.gz: 34888ccf4d7d1e5e869e622acbc6d900acb2c889
3
+ metadata.gz: e13bc52c946545dc3291cfad666b4eb71b55232c
4
+ data.tar.gz: 3e61c63298c23c303ab6e21b26d84914ecee91dd
5
5
  SHA512:
6
- metadata.gz: defcdfa8db289dc2cd10da3875426cff48d156aa61a7577bee5ea6470d6728e7af553e8dca356dacefff0494754042a2f55c46f5407276fd095e85024a58f07f
7
- data.tar.gz: b02e31d532188c0423e6c09a3541933cf8b60b40c421dfedf77a05177e30879c2888aa7914a792c498ebce38b6774d25d9f2fa052da8696ce240cbe007887185
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 DateTools.today()
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
 
@@ -33,6 +33,9 @@
33
33
  &.new {
34
34
  color: $grayLight;
35
35
  }
36
+ &.today {
37
+ font-weight: bold;
38
+ }
36
39
  &.active,
37
40
  &.active:hover {
38
41
  @include button-background($btnPrimaryBackground, adjust-hue($btnPrimaryBackground, 20));
@@ -1,5 +1,5 @@
1
1
  module Anjlab
2
2
  module Widgets
3
- VERSION = "1.0.5"
3
+ VERSION = "1.0.6"
4
4
  end
5
5
  end
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.5
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-05-03 00:00:00.000000000 Z
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