spree_multi_slideshow 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -19,7 +19,7 @@ $(document).ready(function() {
|
|
19
19
|
html += '<label for="' + hash_name + '_' + index + '_value">';
|
20
20
|
html += 'Value</label>';
|
21
21
|
html += '<input id="' + hash_name + '_' + index + '_value" name="' + hash_name + '[' + index + '][value]" type="text">';
|
22
|
-
html += '<a href="#" alt="Destroy" class="
|
22
|
+
html += '<a href="#" alt="Destroy" class="destroy_slide_style"> x</a>';
|
23
23
|
html += '</li>';
|
24
24
|
|
25
25
|
index += 1;
|
data/app/models/spree/slide.rb
CHANGED
@@ -31,7 +31,7 @@ module Spree
|
|
31
31
|
validates_attachment_content_type :attachment, :content_type => ['image/jpeg', 'image/png', 'image/gif', 'image/jpg', 'image/x-png', 'image/pjpeg'], :message => "deve essere JPG, JPEG, PNG o GIF"
|
32
32
|
|
33
33
|
default_scope order("position ASC")
|
34
|
-
scope :enable, {:conditions => {:
|
34
|
+
scope :enable, {:conditions => {:enable => true}}
|
35
35
|
after_post_process :find_dimensions
|
36
36
|
|
37
37
|
# Load user defined paperclip settings
|