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 +4 -4
- data/lib/rbbt/rest/common/table.rb +3 -1
- data/share/views/compass/misc.sass +2 -0
- data/share/views/public/js/helpers/_ellipsis.js +15 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e27cf7773d763ae330e2be0ca5f07661f18998bf86c09249b7c5d33fc233b8d5
|
4
|
+
data.tar.gz: 8cab349ccfb9525341d7779f208505b57890889706c211737d0a29538f887c69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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='#{
|
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
|
@@ -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.
|
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
|
+
date: 2022-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|