spree_quick_cart 2.1.6 → 2.1.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d14dd7c4666a5b8ca4c4d75e7bdbf2b154ea8624
|
4
|
+
data.tar.gz: 5d44e06e56b9f9d6d5f0e73f6f2b75b7db25b72c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1acd54c2ed9faa366e1fa17dc48ffbf0ed51eac9a354934be80a6d6a66fd8d442e0b2dca0543fc6cfef977592887b47a9ddae13473ba057889e5cd5e92de113
|
7
|
+
data.tar.gz: e9797a2c252eb041c9b9bb7a171fafacba97bd28c6904041a1a96ccee35606fee29c7d29cd65eed011cc1e39c219b9dd18e7dbf44921c4d4a4ce67a3539c8bf0
|
@@ -31,9 +31,9 @@ function SpreeQuickCart() {
|
|
31
31
|
this.showFlashMessage = function(message, success) {
|
32
32
|
var messageClass;
|
33
33
|
if (success == true){ messageClass = 'success'} else { messageClass = 'error' };
|
34
|
-
$('#
|
34
|
+
$('#default').prepend("<div class='quick-cart-flash " + messageClass + "'>" + message + "</div>");
|
35
35
|
timeoutID = window.setTimeout(function(){
|
36
|
-
$('#
|
36
|
+
$('#default').find(".quick-cart-flash.success").remove();
|
37
37
|
}, 3000);
|
38
38
|
};
|
39
39
|
|
@@ -15,6 +15,25 @@
|
|
15
15
|
}
|
16
16
|
}
|
17
17
|
|
18
|
+
}
|
19
|
+
|
20
|
+
.quick-cart-flash {
|
21
|
+
position: fixed;
|
22
|
+
z-index: 500;
|
23
|
+
top: 0;
|
24
|
+
left: 0;
|
25
|
+
right: 0;
|
26
|
+
text-align: center;
|
27
|
+
padding: 20px 0;
|
28
|
+
font-size: 20px;
|
29
|
+
color: white;
|
30
|
+
overflow: hidden;
|
18
31
|
|
32
|
+
&.success {
|
33
|
+
background: #8dba53;
|
34
|
+
}
|
19
35
|
|
36
|
+
&.error {
|
37
|
+
background: #e45353;
|
38
|
+
}
|
20
39
|
}
|
data/spree_quick_cart.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.platform = Gem::Platform::RUBY
|
4
4
|
s.name = 'spree_quick_cart'
|
5
|
-
s.version = '2.1.
|
5
|
+
s.version = '2.1.7'
|
6
6
|
s.summary = 'Insert add to cart button in product index page'
|
7
7
|
s.description = 'Adds js quick add to cart button to product catalogue'
|
8
8
|
s.required_ruby_version = '>= 2.0.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_quick_cart
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francisco Trindade
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_core
|