drg_blog_news_forum 0.5.52.1 → 0.5.52.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/drgcms_controls/dc_blog_dc_reply_control.rb +1 -0
- data/app/controllers/drgcms_controls/dc_news_dc_reply_control.rb +1 -2
- data/app/controllers/drgcms_controls/reply_control.rb +1 -1
- data/app/forms/cms_menu.yml +5 -0
- data/app/forms/dc_reply.yml +10 -2
- data/app/forms/reply.yml +6 -6
- data/app/views/dc_replay/_reply.html.erb +1 -1
- data/config/locales/dc_bnf_en.yml +1 -0
- data/config/locales/dc_bnf_sl.yml +1 -0
- data/config/locales/models_en.yml +1 -1
- data/config/locales/models_sl.yml +1 -1
- data/lib/drg_blog_news_forum/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df3654faf8249615292d74cc3e8e4bfffe783055
|
4
|
+
data.tar.gz: 62493c2c36520bffe5feeb7929e8fb9326386bb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e819a01d19b77034c842c281ecabf5718592b59044edc2a8bef8c31181925925d00e7af4bd69913af547e3b484a0c854d98bbfe667728d28a90e7beff2227b04
|
7
|
+
data.tar.gz: bf6c9b7eda130ed6a96c952a7398d0d771f90e223d5abdca45516a166477e29bfe4f87738b3bdc7cbf3ee0ccdf7fb9adb4c601ac25b0fae1872379ce42e1b21b
|
@@ -32,6 +32,7 @@ module DrgcmsControls::DcBlogDcReplyControl
|
|
32
32
|
######################################################################
|
33
33
|
def dc_new_record()
|
34
34
|
# fill with quote when reply_to is present
|
35
|
+
return false unless params[:record][:_reply].blank?
|
35
36
|
if params[:reply_to]
|
36
37
|
replyto = @record._parent.dc_replies.find(params[:reply_to])
|
37
38
|
@record.subject = "Re: #{replyto.subject}"
|
@@ -32,8 +32,7 @@ module DrgcmsControls::DcNewsDcReplyControl
|
|
32
32
|
######################################################################
|
33
33
|
def dc_new_record()
|
34
34
|
# fill with quote when reply_to is present
|
35
|
-
|
36
|
-
if params[:reply_to]
|
35
|
+
if params[:reply_to]
|
37
36
|
|
38
37
|
replyto = DcReply.find(params[:reply_to])
|
39
38
|
@record.subject = "Re: #{replyto.subject}"
|
data/app/forms/cms_menu.yml
CHANGED
data/app/forms/dc_reply.yml
CHANGED
@@ -17,18 +17,26 @@ form:
|
|
17
17
|
|
18
18
|
fields:
|
19
19
|
10:
|
20
|
+
name: doc_id
|
21
|
+
type: readonly
|
22
|
+
|
23
|
+
20:
|
24
|
+
name: doc_class
|
25
|
+
type: readonly
|
26
|
+
|
27
|
+
30:
|
20
28
|
name: created_by_name
|
21
29
|
type: text_field
|
22
30
|
html:
|
23
31
|
size: 30
|
24
32
|
|
25
|
-
|
33
|
+
40:
|
26
34
|
name: subject
|
27
35
|
type: text_field
|
28
36
|
html:
|
29
37
|
size: 80
|
30
38
|
|
31
|
-
|
39
|
+
50:
|
32
40
|
name: body
|
33
41
|
type: html_field
|
34
42
|
options: "height: 420, toolbar: 'basic', allowedContent: false"
|
data/app/forms/reply.yml
CHANGED
@@ -26,6 +26,12 @@ form:
|
|
26
26
|
name: body
|
27
27
|
type: html_field
|
28
28
|
options: "height: 420, toolbar: 'basic', allowedContent: false"
|
29
|
+
40:
|
30
|
+
name: _honey
|
31
|
+
type: text_field
|
32
|
+
text: Click on save button to save comment!
|
33
|
+
html:
|
34
|
+
style: "display: none;"
|
29
35
|
|
30
36
|
100:
|
31
37
|
name: doc_id
|
@@ -34,9 +40,3 @@ form:
|
|
34
40
|
110:
|
35
41
|
name: doc_class
|
36
42
|
type: hidden_field
|
37
|
-
|
38
|
-
120:
|
39
|
-
name: honey
|
40
|
-
type: hidden_field
|
41
|
-
|
42
|
-
|
@@ -17,7 +17,7 @@
|
|
17
17
|
|
18
18
|
<div id="dc-reply-menu">
|
19
19
|
<div class="dc-link dc-animate" style="float: left;">
|
20
|
-
<%= link_to( t('dc_forum.
|
20
|
+
<%= link_to( t('dc_forum.new_comment'), { controller: 'cmsedit', table: "dc_reply",
|
21
21
|
form_name: 'reply', action: 'new',
|
22
22
|
p_doc_id: parent_doc.id, p_doc_class: parent_doc.class.to_s},
|
23
23
|
{target: 'iframe_edit', class: 'dc-animate'}) %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drg_blog_news_forum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.52.
|
4
|
+
version: 0.5.52.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Damjan Rems
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -100,7 +100,7 @@ files:
|
|
100
100
|
- test/test_helper.rb
|
101
101
|
homepage: http://www.drgcms.org
|
102
102
|
licenses:
|
103
|
-
- MIT
|
103
|
+
- MIT
|
104
104
|
metadata: {}
|
105
105
|
post_install_message:
|
106
106
|
rdoc_options: []
|