seems_rateable 1.0.5 → 1.0.6
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,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODdlZjk5NDg2Yzc4MWFiMDU3NTIxOTIzMDAzYWI1N2RlY2Y1Y2MyMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGNhZDczNjU0OWU5MjFhODVmMTcxYTkwOTkzYmZjNGE1YTRjODY1ZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWE1NWJkNmIxODRiYzAwMjk0YWRhZmRjM2E1MTQ0NWFiM2E4ZTc3ZTMwMjI4
|
10
|
+
Yzc4ZDljM2ZlMTAzOTU1YTE3NWRlNmZhMjY3MThhY2ZiOTA5ZmJjMWQ5NTBm
|
11
|
+
NTk3ZTExZDdjMmZjNDY1NTIzNWMwN2E0Njg0MTY3MTgxYzg4NzQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTlkM2YyNzJjZmY0MDc4MzJhZjc3Yjc2YzljYjdlMTk4NDQ4ZTYxNDgyODcz
|
14
|
+
YzNhYjQ3YWNlNzI1YWZiMjJkMTBmNGU3MDZiYjY2OTA3MGNjZjFlYzgzMWUy
|
15
|
+
YzBkODQ3MzIzM2IxNTJmOGVkZDQ1ZTk5MTU3MDgxZGJkOTFkNjE=
|
data/README.md
CHANGED
@@ -100,6 +100,11 @@ You can specify these options :
|
|
100
100
|
To edit the javascript options locate rateable.jquery.js file in /vendor/assets/javascripts/rateable/.
|
101
101
|
The javascript options are explained directly in the file
|
102
102
|
|
103
|
+
### Removal
|
104
|
+
|
105
|
+
To remove gem files simply execute <code>rails g seems_rateable_destroy</code> in terminal.
|
106
|
+
Neither migration files nor database tables will be destroyed.
|
107
|
+
|
103
108
|
## Contributing
|
104
109
|
|
105
110
|
1. Fork it
|
@@ -12,12 +12,13 @@ $(document).ready(function(){
|
|
12
12
|
//rateInfosX : 45 //In pixel - Absolute left position of the information box during mousemove.
|
13
13
|
//rateInfosY : 5 //In pixel - Absolute top position of the information box during mousemove.
|
14
14
|
path : '<%= Rails.application.class.routes.url_helpers.ratings_path %>',
|
15
|
-
|
15
|
+
onSuccess : function(element, rate){
|
16
16
|
//something like ->
|
17
|
-
alert('success');
|
17
|
+
//alert('success');
|
18
|
+
$('<span class="text-success"><small>Thanks for rating!</small></span>').insertAfter(element)
|
18
19
|
},
|
19
20
|
onError : function(element, rate) {
|
20
|
-
|
21
|
+
$('<span class="text-error"><small>You have already rated!</small></span>').insertAfter(element)
|
21
22
|
}
|
22
23
|
});
|
23
24
|
|