radiant-forum-extension 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.1
1
+ 2.1.2
data/forum_extension.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require_dependency 'application_controller'
2
2
 
3
3
  class ForumExtension < Radiant::Extension
4
- version "2.1.1"
4
+ version "2.1.2"
5
5
  description "Nice clean forums and page comments for inclusion in your radiant site. Requires the reader extension and share_layouts."
6
6
  url "http://spanner.org/radiant/forum"
7
7
 
@@ -24,7 +24,7 @@ class Sanitize
24
24
  module Config
25
25
  FORUM = {
26
26
  :elements => %w[
27
- a b blockquote br caption cite code dd del dl dt em h1 h2 h3 h4 h5 h6 i img li ol p pre small span strike strong sub sup u ul
27
+ a b blockquote br caption cite code dd del dl dt em h1 h2 h3 h4 h5 h6 i img li ol p pre small span strike strong sub sup table tbody td thead tr u ul
28
28
  ],
29
29
 
30
30
  :attributes => {
@@ -33,7 +33,9 @@ class Sanitize
33
33
  'blockquote' => ['cite'],
34
34
  'img' => ['align', 'alt', 'height', 'src', 'width'],
35
35
  'ol' => ['start', 'reversed', 'type'],
36
- 'ul' => ['type']
36
+ 'ul' => ['type'],
37
+ 'tr' => ['colspan', 'rowspan'],
38
+ 'td' => ['colspan', 'rowspan']
37
39
  },
38
40
 
39
41
  :protocols => {
@@ -86,10 +86,9 @@
86
86
  },
87
87
  close: function (e) {
88
88
  if (e) e.preventDefault();
89
- self.zoomDown();
89
+ if (self.visible) self.zoomDown();
90
90
  },
91
91
  setClosers: function (argument) {
92
- self.click_outside = $('#pagecontent').click(self.close);
93
92
  self.escape_key = $(document).keyup(function(e) {
94
93
  if (e.keyCode == 27) self.close(e);
95
94
  if (!e.metaKey) {
@@ -100,7 +99,6 @@
100
99
  });
101
100
  },
102
101
  unsetClosers: function (argument) {
103
- if (self.click_outside) $('#pagecontent').unbind('click', self.click_outside);
104
102
  if (self.escape_key) $(document).unbind('keyup', self.escape_key);
105
103
  },
106
104
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{radiant-forum-extension}
8
- s.version = "2.1.1"
8
+ s.version = "2.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["spanner"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-forum-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 1
10
- version: 2.1.1
9
+ - 2
10
+ version: 2.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - spanner