tb_banners 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed1c60f403e056634bdb6f0f2e272090b5e2a208
4
- data.tar.gz: cd1af173242759b901ce4a48d814fcec1488539c
3
+ metadata.gz: a46f87c6d2c6bc161da7d1d2948d5a601e986298
4
+ data.tar.gz: 2a84a2035397ceef9899c8411c212f798f8cb029
5
5
  SHA512:
6
- metadata.gz: 02630122d4dc6de312952d4b4a0fd63121e0eccf77b218cbe6dfd9e5824e52d627b964da7502b84e49f9170f75f7fd66d9ba37d87a40274c0160fcf71cdd299f
7
- data.tar.gz: 5a2a737b481f7ffe05508e897ebe0dda4a3095d116497aaeb907dbdc83c19db4c60dcfd6d5e92b3c74e8c2e5817b8399b73ffe84eb1253f9c55364ab9378d643
6
+ metadata.gz: e45015bd7458996b6d8e3fcc3a84526462cbcb38416030ac75998cffa4883169eee1dc55a4b1c2e4780dbda3391360be84d64c0d792df75eb4c1b0e504d334cf
7
+ data.tar.gz: b050dd66e50d72322c0a9b379d48b5685c73124416c1d4f4210b61702bdd33c12af616c793011e10182fbfd19913abcbef26d729aafbd973501a35d76291b2a3
@@ -40,7 +40,7 @@ spud.admin.banners = new function(){
40
40
  url: $(this).attr('href'),
41
41
  dataType: 'html',
42
42
  success: function(html, textStatus, jqXHR){
43
- displayModalDialogWithOptions({
43
+ spud.admin.modal.displayWithOptions({
44
44
  title: 'Upload Banner',
45
45
  html: html
46
46
  });
@@ -50,12 +50,13 @@ spud.admin.banners = new function(){
50
50
 
51
51
  self.clickedEditBanner = function(e){
52
52
  e.preventDefault();
53
+ spud.admin.editor.unload();
53
54
  bannerEditId = parseInt($(this).parents('.admin-banner-set-item').attr('data-id'), 10);
54
55
  $.ajax({
55
56
  url: $(this).attr('href'),
56
57
  dataType: 'html',
57
58
  success: function(html, textStatus, jqXHR){
58
- displayModalDialogWithOptions({
59
+ spud.admin.modal.displayWithOptions({
59
60
  title: 'Edit Banner',
60
61
  html: html
61
62
  });
@@ -161,7 +162,7 @@ spud.admin.banners = new function(){
161
162
  else{
162
163
  $('.admin-banner-set-items-container').append(html);
163
164
  }
164
- hideModalDialog();
165
+ spud.admin.modal.hide();
165
166
  };
166
167
 
167
168
  self.onLegacyUploadError = function(html){
@@ -184,17 +185,14 @@ spud.admin.banners = new function(){
184
185
  ////////////
185
186
 
186
187
  this.form = function(){
187
- var richText = $('.spud_banner_rich_text');
188
+ var richText = $('#spud_banner_rich_text');
188
189
  if(richText){
189
190
  spud.admin.editor.init({
190
- selector:'.spud_banner_rich_text',
191
- buttons: [
192
- ['bold','italic','underline','strikethrough','formatselect','|','bullist','numlist','outdent','indent','|','link','unlink','anchor'],
193
- ['justifyleft','justifycenter','justifyright','justifyfull','|','cut','copy','paste','pastetext']
194
- ],
191
+ selector: '#spud_banner_rich_text',
192
+ buttons: ['bold','italic','underline','formatselect','|','bullist','numlist','|','link','unlink','anchor', '|', 'code'],
195
193
  height: 300,
196
194
  width: 500
197
195
  });
198
196
  }
199
197
  };
200
- }();
198
+ }();
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Banners
3
- VERSION = "1.1.4"
3
+ VERSION = "1.1.5"
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.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Westlake
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-18 00:00:00.000000000 Z
11
+ date: 2014-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.2'
33
+ version: 1.2.5
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.2'
40
+ version: 1.2.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: paperclip
43
43
  requirement: !ruby/object:Gem::Requirement