htmlgrid 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +5 -0
- data/lib/htmlgrid/dojotoolkit.rb +4 -18
- data/lib/htmlgrid/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc2a221d74e06626ae58d60dedfddd2b02bf9604
|
4
|
+
data.tar.gz: 8623a7bd39724e206e54b956e478d9cfb9197c6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adc1e28727ad07bacee6b850c5d86534827382ccc33a65cef2d81f2dbfa29667cd83836bf39f3462af8e10fffc010864ef02f867e0001222fc18881a1848f5b7
|
7
|
+
data.tar.gz: f8572317835cd5136d8ed8abe4ec209da35e2d31a47c65332fbc83ae327b245d2c1f8a1bc99469eb156109c8f31fed8bb833be16d25ca3ebe1c73d6d94ad2d08
|
data/History.txt
CHANGED
data/lib/htmlgrid/dojotoolkit.rb
CHANGED
@@ -12,21 +12,7 @@ module HtmlGrid
|
|
12
12
|
attr_accessor :dojo_tooltip
|
13
13
|
# FIXME
|
14
14
|
# DOJO_VERSION >= 1.7.0 only (removed old version support)
|
15
|
-
|
16
|
-
# <dojo:#{widget} ...> does not work on konqueror as of
|
17
|
-
# 02.06.2006. In combination with DOJO_DEBUG = true it even
|
18
|
-
# hangs konqueror.
|
19
|
-
=begin
|
20
|
-
dojo_tag = "<div dojoType=\"#{widget}\""
|
21
|
-
args.each { |key, value|
|
22
|
-
if(value.is_a?(Array))
|
23
|
-
dojo_tag << " #{key}=\"#{value.join(';')}\""
|
24
|
-
else
|
25
|
-
dojo_tag << " #{key}=\"#{value}\""
|
26
|
-
end
|
27
|
-
}
|
28
|
-
dojo_tag << "></div>"
|
29
|
-
=end
|
15
|
+
def dojo_tag(widget, args={}, inner_html='')
|
30
16
|
div = HtmlGrid::Div.new(@model, @session, self)
|
31
17
|
div.set_attribute('dojoType', widget)
|
32
18
|
lim = ","
|
@@ -54,8 +40,8 @@ module HtmlGrid
|
|
54
40
|
def dynamic_html(context)
|
55
41
|
html = ''
|
56
42
|
attrs = {
|
57
|
-
|
58
|
-
|
43
|
+
'data-dojo-type' => 'dijit/Tooltip',
|
44
|
+
'data-dojo-props' => "connectId:'#{css_id}'",
|
59
45
|
'id' => "#{css_id}_widget",
|
60
46
|
'style' => 'display: none',
|
61
47
|
}
|
@@ -134,7 +120,7 @@ module HtmlGrid
|
|
134
120
|
args = { 'type' => 'text/javascript' }
|
135
121
|
headers << context.script(args) {
|
136
122
|
script = ''
|
137
|
-
self.class::DOJO_REQUIRE.each { |req|
|
123
|
+
self.class::DOJO_REQUIRE.uniq.each { |req|
|
138
124
|
script << "'#{req}',"
|
139
125
|
}
|
140
126
|
if(@dojo_onloads)
|
data/lib/htmlgrid/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: htmlgrid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masaomi Hatakeyama, Zeno R.R. Davatz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05
|
11
|
+
date: 2016-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sbsm
|