tml-rails 4.3.10 → 4.3.11

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: a2e58f3865d0520142d3e1feb1b5d133c913e13a
4
- data.tar.gz: 558ab7892b1c672979b71a17e755b36e884d8ef5
3
+ metadata.gz: aa9e35e016f442610225c6e2cb4bdc2a4f5f8e99
4
+ data.tar.gz: bca3d52ca3e86c027bb990a5d2f3d7f5e37b8033
5
5
  SHA512:
6
- metadata.gz: c9cfbdda944dd9adac6cf2d830b197fa898ef90e5ca4430f08094072e7bc88641ee0e3d9eb3bbbb79a1ec08639320ee0c5839102f89d2ebb3f4466dc738befe0
7
- data.tar.gz: 0aa45bac7a54cd230d056091cb8183c9563c29f3b16eb77387bb9cbe9e9d6bb1df138b0a498030b326a3c646053abe458ea0d049e7ff35de3056481da7ff7bdc
6
+ metadata.gz: 354a88da685641ddd0a2ac31e0a01ee25880e2b5165c9311c8f4255e7602ca68d8d1ce77ff1924a6f9938135741b43fa9bdbf71abb7fcb5cbb9c423d4e90a839
7
+ data.tar.gz: 476d195e5bcccb064d45cf680e2ee04f9ab15a95c6da40294bc722d4325ee1b70925c2c03231b4b71006ef5a65f51816be1607a271d8bf2cfec06f6e947ca81e
@@ -3,7 +3,6 @@
3
3
  opts[:class] ||= 'dropdown'
4
4
  %>
5
5
 
6
-
7
6
  <style>
8
7
  .trex-language-selector {position: relative;display: inline-block;vertical-align: middle;}
9
8
  .trex-language-toggle,
@@ -25,7 +24,7 @@
25
24
  display:block;pointer-events: auto;-webkit-transform: none;transform: none;
26
25
  }
27
26
  .trex-dropdown-menu > li {
28
- text-align:<%= tml_current_language.align("left") %>;
27
+ text-align:<%= tml_current_language.align('left') %>;
29
28
  }
30
29
  .trex-dropdown-menu > li > a {
31
30
  display: block;padding: 3px 10px;margin:0 5px;clear: both;font-weight: normal;line-height: 1.42857143;color: #333;border-radius:3px;white-space: nowrap;cursor:pointer;
@@ -34,7 +33,8 @@
34
33
  .trex-dropdown-menu > li.trex-language-item > a:hover,
35
34
  .trex-dropdown-menu > li.trex-language-item > a:focus {text-decoration:none;background: #F0F2F4;}
36
35
  .trex-dropdown-menu > li.trex-language-item > a .trex-native-name {font-size: 11px;color: #A9AFB8;margin-left: 3px;}
37
- .trex-dropdown-menu > li.trex-selected a:after {content: "\2713";float: <%= tml_current_language.align(:right) %>;font-weight: bold;font-size: 16px;margin: 0px 5px 0 0;color: #13CF80;}
36
+ .trex-dropdown-menu > li.trex-selected a:after {content: '✓';right: 5px;font-weight: bold;font-size: 16px;margin: 0px 5px 0px 0px;color: #13CF80;position: absolute;}
37
+ .trex-dropdown-menu[dir=rtl] > li.trex-selected a:after {left: 5px;right:auto;margin: 0px 0 0px 5px;}
38
38
  .trex-dropdown-menu .trex-credit a {border-top: solid 1px #DDD;font-size: 13px;padding: 7px 0 0;margin: 5px 15px 5px;color: #9FA7AE;font-weight: 400;}
39
39
  </style>
40
40
 
@@ -43,7 +43,7 @@
43
43
  <a class="trex-language-toggle" data-toggle="language-selector" tabindex="0" dir="<%= tml_current_language.dir %>">
44
44
  <%= tml_language_name_tag(tml_current_language, opts) %>
45
45
  </a>
46
- <ul class="trex-dropdown-menu">
46
+ <ul class="trex-dropdown-menu" dir="<%= tml_current_language.dir %>">
47
47
  <% tml_application.languages.each do |lang| %>
48
48
 
49
49
  <li class="trex-language-item <%='trex-selected' if tml_current_language.locale == lang.locale %>" dir="<%= tml_current_language.dir %>">
@@ -140,12 +140,9 @@
140
140
  close: function(e) {
141
141
  e = e || window.event;
142
142
  var target = e.currentTarget || e.srcElement;
143
- removeClass(target.parentElement, 'trex-open');
144
-
145
- if(e.relatedTarget && e.relatedTarget.getAttribute('data-toggle') !== 'language-selector') {
146
- e.relatedTarget.click();
147
- }
148
- return false;
143
+ setTimeout(function(){
144
+ removeClass(target.parentElement, 'trex-open');
145
+ }, 500); //hmmm
149
146
  }
150
147
  };
151
148
  var selectorList = document.querySelectorAll('[data-toggle=language-selector]');
@@ -30,5 +30,5 @@
30
30
  #++
31
31
 
32
32
  module TmlRails
33
- VERSION = '4.3.10'
33
+ VERSION = '4.3.11'
34
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tml-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.10
4
+ version: 4.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Berkovich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-24 00:00:00.000000000 Z
11
+ date: 2015-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails