I Recommend This - Version 3.7.2

Version Description

Download this release

Release Info

Developer hchouhan
Plugin Icon 128x128 I Recommend This
Version 3.7.2
Comparing to
See all releases

Code changes from version 3.7.1 to 3.7.2

Files changed (3) hide show
  1. dot-irecommendthis.php +1 -1
  2. js/dot_irecommendthis.js +13 -15
  3. readme.txt +5 -2
dot-irecommendthis.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: I Recommend This
4
  * Plugin URI: http://www.harishchouhan.com/personal-projects/i-recommend-this/
5
  * Description: This plugin allows your visitors to simply recommend or like your posts instead of commment it.
6
- * Version: 3.7.1
7
  * Author: Harish Chouhan
8
  * Author URI: http://www.harishchouhan.com
9
  * Author Email: me@harishchouhan.com
3
  * Plugin Name: I Recommend This
4
  * Plugin URI: http://www.harishchouhan.com/personal-projects/i-recommend-this/
5
  * Description: This plugin allows your visitors to simply recommend or like your posts instead of commment it.
6
+ * Version: 3.7.2
7
  * Author: Harish Chouhan
8
  * Author URI: http://www.harishchouhan.com
9
  * Author Email: me@harishchouhan.com
js/dot_irecommendthis.js CHANGED
@@ -1,19 +1,17 @@
1
  jQuery(document).ready(function($){
2
 
3
- $('.dot-irecommendthis').on('click',
4
- function() {
5
- var link = $(this);
6
- if(link.hasClass('active')) return false;
7
-
8
- var id = $(this).attr('id'),
9
- suffix = link.find('.dot-irecommendthis-suffix').text();
10
-
11
- $.post(dot_irecommendthis.ajaxurl, { action:'dot-irecommendthis', recommend_id:id, suffix:suffix }, function(data){
12
- link.html(data).addClass('active').attr('title','You already recommended this');
13
- });
14
-
15
- return false;
16
  });
17
-
18
-
19
  });
1
  jQuery(document).ready(function($){
2
 
3
+ $(document).on('click', '.dot-irecommendthis',function() {
4
+ var link = $(this);
5
+ if(link.hasClass('active')) return false;
6
+
7
+ var id = $(this).attr('id'),
8
+ suffix = link.find('.dot-irecommendthis-suffix').text();
9
+
10
+ $.post(dot_irecommendthis.ajaxurl, { action:'dot-irecommendthis', recommend_id:id, suffix:suffix }, function(data){
11
+ link.html(data).addClass('active').attr('title','You already recommended this');
12
+ });
13
+
14
+ return false;
 
15
  });
16
+
 
17
  });
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: http://www.dreamsonline.net
4
  Tags: recommend, like, love, post, rate, rating, post rating, heart, dribbble like, tumblr like
5
  Requires at least: 3.7
6
  Tested up to: 3.9.1
7
- Stable tag: 3.7.1
8
- Last Updated: 2014-June-18
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -89,6 +89,9 @@ You can also visit the [support center](http://www.dreamsonline.net/wordpress-pl
89
 
90
  == Changelog ==
91
 
 
 
 
92
  = 3.7.1
93
  * Spanish translation added. Thanks to Andrew Kurtis from [WebHostingHub](http://www.webhostinghub.com/)
94
 
4
  Tags: recommend, like, love, post, rate, rating, post rating, heart, dribbble like, tumblr like
5
  Requires at least: 3.7
6
  Tested up to: 3.9.1
7
+ Stable tag: 3.7.2
8
+ Last Updated: 2014-June-21
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
89
 
90
  == Changelog ==
91
 
92
+ = 3.7.2
93
+ * Updated 'dot_irecommendthis.js' file to make plugin work even when the like button is on a hidden element. Thanks to [forthewinn](http://wordpress.org/support/profile/forthewinn). [Support Ticket](http://wordpress.org/support/topic/recommendation-to-fix-usage-in-hiddenexpanding-elements)
94
+
95
  = 3.7.1
96
  * Spanish translation added. Thanks to Andrew Kurtis from [WebHostingHub](http://www.webhostinghub.com/)
97