tb_banners 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/admin/banners/banners.js +8 -10
- data/lib/spud_banners/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a46f87c6d2c6bc161da7d1d2948d5a601e986298
|
4
|
+
data.tar.gz: 2a84a2035397ceef9899c8411c212f798f8cb029
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
-
|
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 = $('
|
188
|
+
var richText = $('#spud_banner_rich_text');
|
188
189
|
if(richText){
|
189
190
|
spud.admin.editor.init({
|
190
|
-
selector:'
|
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
|
+
}();
|
data/lib/spud_banners/version.rb
CHANGED
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
|
+
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-
|
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:
|
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:
|
40
|
+
version: 1.2.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: paperclip
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|