tb_banners 1.3.1 → 1.3.2

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
  SHA256:
3
- metadata.gz: e3a78e90e1242e80c10dfebdf922550e8883dc7f24c783a42b8b85c48cc67263
4
- data.tar.gz: aa49eb68f74b9c070a83ba2be68110f00e904c5f10e7e9d02dc1c787ef9ed3e3
3
+ metadata.gz: c6523446637e03b2e8bbf0817e9a3f932a914ec2eb4e9b15564a5e41d5e1f4b8
4
+ data.tar.gz: 96800f6ab2b718017ec48b39d4f403a59682b7cca43c45e7b271972d35582335
5
5
  SHA512:
6
- metadata.gz: 36e529fa4ced38e9f632173d9bced428144a32e092836f09246f89e52d549da34a733569511175137665d0a5e0aea20b930543123dc47152959f9b413df07633
7
- data.tar.gz: 1d2ab1f911dcaedc5ac572b216464f7d492c1354855d3bd3848d4c38aef7626be600b6cf972fb5ec92fb9721ee6aad0a85a37048e078e7a22bc3f468eb627328
6
+ metadata.gz: 9a832b4f51efcbb3904b77b2b29be04a89d4e07ad4c242e46de3427d81abd268f538d5a588ff3bba4a1402072a06d71936074177f7da3b7cca171329f4c1e1a2
7
+ data.tar.gz: ae6b66441337ca85a0e91b998f77871b72ce6c47c2ff16d1f5215ae487c55559316dbf29e17e0b723951c2e28dd44258ae476f951a7725f6f6f12e716a9852f1
@@ -5,7 +5,7 @@
5
5
 
6
6
  var bannerSetEditId = false;
7
7
 
8
- spud.admin.banner_sets = {
8
+ tb.banner_sets = {
9
9
  init: function(){
10
10
  $('.spud_banner_sets_add_new').on('click', clickedAddNewBannerSet);
11
11
  $('.admin-banner-sets-list').on('click', '.admin-banner-set-edit', clickedEditBannerSet);
@@ -5,7 +5,7 @@
5
5
 
6
6
  var bannerEditId = false;
7
7
 
8
- spud.admin.banners = {
8
+ tb.banners = {
9
9
 
10
10
  // Index Page
11
11
  /////////////
@@ -91,9 +91,9 @@ var submittedBannerForm = function(e){
91
91
  fd.append(name, value);
92
92
  });
93
93
 
94
- var richText = form.find('.admin-banner-rich-text');
95
- if(richText.length > 0){
96
- fd.append('spud_banner[rich_text]', richText.val());
94
+ var editor = tinymce.get('admin-banner-rich-text');
95
+ if(editor){
96
+ fd.append('spud_banner[rich_text]', editor.getContent());
97
97
  }
98
98
  else{
99
99
  fd.append('spud_banner[rich_text]', '');
@@ -9,6 +9,6 @@
9
9
  </table>
10
10
  </div>
11
11
  <script>
12
- $(document).ready(spud.admin.banner_sets.init);
12
+ $(document).ready(tb.banner_sets.init);
13
13
  </script>
14
14
  <% end %>
@@ -23,5 +23,5 @@
23
23
  </div>
24
24
 
25
25
  <script>
26
- $(document).ready(spud.admin.banners.init);
26
+ $(document).ready(tb.banners.init);
27
27
  </script>
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Banners
3
- VERSION = '1.3.1'.freeze
3
+ VERSION = '1.3.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tb_banners
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moser Consulting
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-24 00:00:00.000000000 Z
11
+ date: 2021-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paperclip