rbbt-rest 1.8.151 → 1.8.152

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
  SHA256:
3
- metadata.gz: cd9278f880225799697df0bc7599a97d5463942604f3c6947e65c5450495e2ad
4
- data.tar.gz: 3441f94e0dc3cbced78e4572d4d743d047d0be1dcd0728c5ebbf8c7bb0b8d74c
3
+ metadata.gz: e27cf7773d763ae330e2be0ca5f07661f18998bf86c09249b7c5d33fc233b8d5
4
+ data.tar.gz: 8cab349ccfb9525341d7779f208505b57890889706c211737d0a29538f887c69
5
5
  SHA512:
6
- metadata.gz: d8f1453f376b923caf6b7868462f877246614b9f051da579b55429d21ad2f2ad66ce7ad6bf99ee83dcfb20160611b983e7a6e02c477ba4501b4e0e5c112ec3b4
7
- data.tar.gz: ac6c5d333a5f6b5cd41c78c014b8166d4c9f38b88297b40e89b66243bcadea5ba2896d639e5efb792b84e6562931af22498c384d14b938c36c878ad50d750f3a
6
+ metadata.gz: f3bbe0d5a8aee0611f7c780cab3b6c27fead82bef56ddd58d3c587b84e35aaeecf00cea6d722a7ea9bb8de012016779b0d2dbb52f86b904cb1f8617ed626505f
7
+ data.tar.gz: 23060fe4f7650865a13034ce9e84232b74b59b37cfe1a59f747728d33b5150bf4ee77b4de87761ff49129f671fe0116a2b781cf8e04d59eac735f835c908e20e
@@ -339,7 +339,9 @@ module RbbtRESTHelpers
339
339
  when true, "true", :true
340
340
  Array === value ? value.collect{|v| "<span class='table_value'>#{v.to_s}</span>"} * ", " : "<span class='table_value'>#{value}</span>"
341
341
  when :long, "long"
342
- Array === value ? value.zip(orig_value).collect{|v,ov| "<span class='table_value long' title='#{URI.escape(ov.to_s)}'>#{v.to_s}</span>"} * " " : "<span class='table_value long' title='#{URI.escape(orig_value)}'>#{value}</span>"
342
+ Array === value ? value.zip(orig_value).collect{|v,ov| "<span class='table_value long' title='#{CGI.escape(ov.to_s)}'>#{v.to_s}</span>"} * " " : "<span class='table_value long' title='#{CGI.escape(orig_value)}'>#{value}</span>"
343
+ when :lines, "lines"
344
+ Array === value ? value.zip(orig_value).collect{|v,ov| "<span class='table_value long lines' title='#{CGI.escape(ov.to_s)}'>#{v.to_s}<br/></span>"} * " " : "<span class='table_value long lines' title='#{CGI.escape(orig_value)}'>#{value}</span>"
343
345
  else
344
346
  Array === value ? value.collect{|v| v.to_s} * ", " : value
345
347
  end
@@ -258,6 +258,8 @@ label[title]
258
258
  td
259
259
  &.true
260
260
  font-weight: bold
261
+ span[title=true]
262
+ font-weight: bold
261
263
 
262
264
  span.choice
263
265
  padding: 0.5em
@@ -29,7 +29,7 @@ function contract_ellipsis(elem, max){
29
29
  var links = [];
30
30
  var head = elements.slice(0, max).removeClass('long');
31
31
  head.each(function(){ links.push(this.outerHTML)})
32
- new_content = links.join(", ");
32
+ new_content = links.join(" ");
33
33
  elem.html(new_content);
34
34
  }
35
35
 
@@ -45,9 +45,22 @@ function restore_ellipsis(elem){
45
45
  var span = elem.find('span.ellipsis')
46
46
  if (span.length == 1){
47
47
  var html = span.attr('attr-text');
48
+
49
+ var by_lines = span.parent().find('span').first().hasClass('lines')
50
+
51
+ if (by_lines){
52
+ var other_tds = span.parent().parent().find('td')
53
+ }
54
+
48
55
  elem.html(unescape(html));
56
+
57
+ if (by_lines){
58
+ other_tds.each(function(i,x){restore_ellipsis($(x))})
59
+ }
60
+
61
+
62
+ update_rbbt();
49
63
  }
50
- update_rbbt();
51
64
  }
52
65
 
53
66
  $('body').on('click', 'a.open_ellipsis', function(link){
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.151
4
+ version: 1.8.152
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-11 00:00:00.000000000 Z
11
+ date: 2022-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake