caboose-cms 0.9.144 → 0.9.145
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: 55cb184a821973700cd89357414e3d46ed3ab96a
|
4
|
+
data.tar.gz: b4e45dc08475443d1b8c62be375981495e1a736f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00b61c390aa03888a8b085ec4e1230e7a8abeeaed3c9f5145629fe9597858a577caac232a015bb486cef0d57aa87a07d62a10860d8a43acfd9f06d0da328de38
|
7
|
+
data.tar.gz: 80c084b1391e454eacfc421bea033f85a793f15210edb56602babd994707421164903b3e6755b6320459d7d2a19e14b89ca4c75bed06ce972f83a3941f8e50e7
|
@@ -216,14 +216,14 @@
|
|
216
216
|
background: #141516;
|
217
217
|
color: #f7f7f7 !important;
|
218
218
|
text-align: center;
|
219
|
-
padding: 1px 15px
|
219
|
+
padding: 1px 15px 2px 15px;
|
220
220
|
height: auto;
|
221
221
|
display: inline-block;
|
222
222
|
margin: 0 auto;
|
223
223
|
font-family: "Roboto", Arial;
|
224
224
|
font-weight: 300;
|
225
225
|
font-size: 15px;
|
226
|
-
line-height:
|
226
|
+
line-height: 30px;
|
227
227
|
cursor: pointer;
|
228
228
|
border: 1px solid #fff;
|
229
229
|
-webkit-border-radius: 5px;
|
@@ -514,24 +514,13 @@ module Caboose
|
|
514
514
|
def admin_update_value
|
515
515
|
return unless user_is_allowed('pages', 'edit')
|
516
516
|
resp = StdClass.new({'attributes' => {}})
|
517
|
+
val = params[:value]
|
517
518
|
b = Block.find(params[:id])
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
# b.page.save
|
524
|
-
# elsif b.post
|
525
|
-
# b.post.status = 'edited'
|
526
|
-
# b.post.save
|
527
|
-
# end
|
528
|
-
|
529
|
-
# elsif b.block_type_id == 1 # Heading
|
530
|
-
# b1 = b.child('heading_text')
|
531
|
-
# b1.value = params[:value]
|
532
|
-
# b1.save
|
533
|
-
# end
|
534
|
-
resp.success = b.save
|
519
|
+
if b
|
520
|
+
b.new_value = val.blank? ? 'EMPTY' : val.gsub(/<span><span contenteditable="false"([A-z0-9;\-\(\),><#&\/\.\?↵ =":]*)<\/span><\/span>/,'').gsub('<span></span>','').gsub('<span style=""></span>','')
|
521
|
+
b.status = 'edited' if b.status == 'published'
|
522
|
+
resp.success = b.save
|
523
|
+
end
|
535
524
|
render :json => resp
|
536
525
|
end
|
537
526
|
|
@@ -22,6 +22,7 @@ $(document).ready(function() {
|
|
22
22
|
allow_bulk_delete: false ,
|
23
23
|
allow_duplicate: false ,
|
24
24
|
allow_advanced_edit: true ,
|
25
|
+
after_add: 'redirect',
|
25
26
|
fields: [
|
26
27
|
{ show: true , bulk_edit: false , name: 'title' , nice_name: 'Title' , sort: 'title' , type: 'text' , value: function(p) { return p.title }, width: 300, editable: false },
|
27
28
|
{ show: true , bulk_edit: false , name: 'published' , nice_name: 'Published' , sort: 'published' , type: 'checkbox' , value: function(p) { return p.published ? 'Yes' : 'No' }, width: 100, editable: false },
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.145
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|