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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 493156bba6ea55bb67e136827debde748db5bbbe
4
- data.tar.gz: 012b9c6ef18b01881c8529b9262d0599ef91d9d9
3
+ metadata.gz: bc2a221d74e06626ae58d60dedfddd2b02bf9604
4
+ data.tar.gz: 8623a7bd39724e206e54b956e478d9cfb9197c6b
5
5
  SHA512:
6
- metadata.gz: 0efcf47d58cf047af2e6589845117f9afaf4c03e22e5eea79079538361ccb6a79a7821a0897cc458d469bb2de546feb374431626882e34550de18408e4121289
7
- data.tar.gz: 4e00e05f74fda7af302fa339f1ca9d0f448463c2af6b5a25b54468f7f2998714d1787cc3ef2cf61542c1de63dac0909b921aa3c1a2b3f50e287b3e3f39de8414
6
+ metadata.gz: adc1e28727ad07bacee6b850c5d86534827382ccc33a65cef2d81f2dbfa29667cd83836bf39f3462af8e10fffc010864ef02f867e0001222fc18881a1848f5b7
7
+ data.tar.gz: f8572317835cd5136d8ed8abe4ec209da35e2d31a47c65332fbc83ae327b245d2c1f8a1bc99469eb156109c8f31fed8bb833be16d25ca3ebe1c73d6d94ad2d08
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 1.0.9 / 05.07.2016
2
+
3
+ * Made tooltip work with dojo 1.11
4
+ * Only tested with dojo 1.11. Works probably with dojo >= 1.8.
5
+
1
6
  === 1.0.8 / 10.05.2015
2
7
 
3
8
  * Removed C-interface
@@ -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
- def dojo_tag(widget, args={}, inner_html='')
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
- 'data-dojo-type' => 'ywesee.widget.Tooltip',
58
- 'connectId' => css_id,
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)
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
3
  module HtmlGrid
4
- VERSION = '1.0.8'
4
+ VERSION = '1.0.9'
5
5
  end
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.8
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-10 00:00:00.000000000 Z
11
+ date: 2016-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sbsm