my_forum 0.0.1.beta31 → 0.0.1.beta32
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f30da0c902dc4cd875aafee489523ec8625b2663
|
4
|
+
data.tar.gz: e15252c800442769c97569021bfd5700100b2c7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78238441523954305ba88332ab7a1bb46274bbcdeb88e48fb8fc9ae0957ea2246428fd44870acfcfd9e609a932d1cc5d9c18913033f5f4d59632e693b74c749f
|
7
|
+
data.tar.gz: 276fed314891ee8b47bfbb43b3e61f309d87aa29e18ee10ae40636c91714be7a9c03210b5b3d43f0dd586a4ed1d7150029cb980ea6641823fb28e363183db2d4
|
@@ -37,7 +37,8 @@
|
|
37
37
|
response = $.parseJSON(data)
|
38
38
|
bbcode_attachments = ''
|
39
39
|
bbcode_attachments += ('[attachment=' + id + '] \n') for id in response.attachments
|
40
|
-
$('##{textarea}').
|
40
|
+
text = $('##{textarea}').val()
|
41
|
+
$('##{textarea}').val(text + '\n' + bbcode_attachments + '\n')
|
41
42
|
$('#loaded-content').html('#{t('my_forum.successfull_aploaded')}')
|
42
43
|
$('#add_photo').modal('hide')
|
43
44
|
$('#attachment_files').val('')
|
data/lib/my_forum/engine.rb
CHANGED
@@ -5,6 +5,11 @@ module MyForum
|
|
5
5
|
require 'jquery-rails'
|
6
6
|
require 'bootstrap-sass'
|
7
7
|
|
8
|
+
config.after_initialize do
|
9
|
+
ActionView::Base.sanitized_allowed_tags = %w(strong em a img br p i pre div span)
|
10
|
+
ActionView::Base.sanitized_allowed_attributes = %w(href title class src)
|
11
|
+
end
|
12
|
+
|
8
13
|
config.generators do |g|
|
9
14
|
g.test_framework :rspec, :fixture => false
|
10
15
|
g.assets false
|
data/lib/my_forum/version.rb
CHANGED