mumuki-styles 1.16.1 → 1.16.2

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: 4c6b730c143c2d7a3c4bb722d9c823093f0d61de
4
- data.tar.gz: 824a1ecaf2c4b1ac4f045c7f96223c4cc7be22dc
3
+ metadata.gz: 8895fba6fca0267ef8101b5a35e77f3fef2e49a9
4
+ data.tar.gz: 8153cb208d85ab08d34d1c02a7114e800b95aa9e
5
5
  SHA512:
6
- metadata.gz: 07410eda42567a1797f35d5fbe900492bc24f359d866b290bbf131b188c0a426ad9ddba7191d9362d59bd6cd3d3186ab5cce037dee8e5952ffdda11637f509b7
7
- data.tar.gz: de0dd7df2eb47405d35576edb065c4e03a5a8bc2e6ff480967971b6e447ffce74c1451ba43ea53b298be7e2abebc7f24cdefb19c92b077c6efcb14675fccf99e
6
+ metadata.gz: 3e93d28bc6ff9515ef458ea3af2515241c6421c704ce5f3f9e2d89850ac42f29a481897c6d2dda458f573f8cb15f7f4061bd56ce3a1f5824a0dfd865309a9e40
7
+ data.tar.gz: 0ed4e0fc1d7006f7faa6ab2892b242439c11d299456cce92aec557a6de2e5b94ffa5bd3136bc235363ff8ee4ff2a8ce3b3c6a8dd914023982300799e7d24de24
@@ -13169,13 +13169,21 @@ mumuki.load(function () {
13169
13169
  });
13170
13170
  }
13171
13171
 
13172
+ function generateSpans($tds) {
13173
+ $tds.each(function (i) {
13174
+ var $td = $($tds[i]);
13175
+ var text = $td.text();
13176
+ $td.empty();
13177
+ $td.append('<span>' + text + '</span>');
13178
+ });
13179
+ }
13180
+
13172
13181
  $.fn.renderPrerenderedSqlTable = function () {
13173
13182
  var self = this;
13174
13183
  self.each(function (i) {
13175
13184
  var $table = $(self[i]).find('table');
13176
- var $trs = $table.find('thead > tr');
13177
- $table.find('td, th').css({ width: (100 / $trs.children('th').length) + '%' })
13178
- generatePKsAndFKs($trs);
13185
+ generatePKsAndFKs($table.find('thead > tr'));
13186
+ generateSpans($table.find('tbody > tr > td'));
13179
13187
  });
13180
13188
  return self;
13181
13189
  }
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Styles
3
- VERSION = "1.16.1"
3
+ VERSION = "1.16.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-styles
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.1
4
+ version: 1.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Federico Scarpa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-07 00:00:00.000000000 Z
11
+ date: 2018-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler