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: 89a49dfc22a2a7a7fa487b91cecae40cdf307fc8
4
- data.tar.gz: 5abd3ac661e60d046afa0a178884fcc7a96084ed
3
+ metadata.gz: f30da0c902dc4cd875aafee489523ec8625b2663
4
+ data.tar.gz: e15252c800442769c97569021bfd5700100b2c7e
5
5
  SHA512:
6
- metadata.gz: 486084d8c05cd56ebda75b96a95830c13d51fc9e35659a7abac7c0fa08eb02d2bd5e5f9183bdedd777db9209f30100553bbebc414f11782f28ba8394def8dd8e
7
- data.tar.gz: 6c4e438155220a21d763fbe9d5f5405fe7c697ba8bd7e819e69152ddf2cbb34b88c986e504d085281df3fe50475a501f083ca11aaa62098798f9fa5407f43232
6
+ metadata.gz: 78238441523954305ba88332ab7a1bb46274bbcdeb88e48fb8fc9ae0957ea2246428fd44870acfcfd9e609a932d1cc5d9c18913033f5f4d59632e693b74c749f
7
+ data.tar.gz: 276fed314891ee8b47bfbb43b3e61f309d87aa29e18ee10ae40636c91714be7a9c03210b5b3d43f0dd586a4ed1d7150029cb980ea6641823fb28e363183db2d4
@@ -8,20 +8,6 @@
8
8
  }
9
9
  }
10
10
 
11
- .karma {
12
- position: absolute;
13
- right: 26px;
14
- top: 6px;
15
-
16
- .fa-plus {
17
- color: green;
18
- }
19
-
20
- .fa-minus {
21
- color: red;
22
- }
23
- }
24
-
25
11
  .topic_posts_info {
26
12
  background-color: #d3daed;
27
13
  color: #fff;
@@ -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}').append(bbcode_attachments)
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('')
@@ -20,4 +20,4 @@
20
20
  .col-md-10
21
21
  .created_at= t('.sent', datetime: time(post.created_at))
22
22
  #post_container{ id: post.id }
23
- = format_post_text(post)
23
+ = sanitize format_post_text(post)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module MyForum
2
- VERSION = "0.0.1.beta31"
2
+ VERSION = "0.0.1.beta32"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_forum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta31
4
+ version: 0.0.1.beta32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitaly Omelchenko