Voting from admin doesn't work after upgrade ezjscore.
You need to be logged in to post messages in the forums. New users may register here.
|
Carlos Revillo
Member since: 09 January 2008
Posts: 53
|
Tuesday 09 February 2010 7:22:47 pm
Hi.
Just downloaded trunk versions of ezstarrating and ezjscore and voting from the admin doesn't work. I always get the 'undefined' javascript alert.
Doing some test it seems that only happens when you choose jquery as your preferred library. Following small patch seems to solve the issue.
Index: extension/ezstarrating/design/standard/javascript/ezstarrating_jquery.js
===================================================================
--- extension/ezstarrating/design/standard/javascript/ezstarrating_jquery.js (revision 95)
+++ extension/ezstarrating/design/standard/javascript/ezstarrating_jquery.js (working copy)
@@ -27,7 +27,7 @@
var args = $(this).attr('id').split('_');
$('#ezsr_rating_' + args[1]).removeClass('ezsr-star-rating-enabled');
$('li a', '#ezsr_rating_' + args[1]).unbind( 'click' );
- jQuery.ez( 'ezstarrating::rate::' + args[1] + '::' + args[2] + '::' + args[3], _callBack );
+ jQuery.ez( 'ezstarrating::rate::' + args[1] + '::' + args[2] + '::' + args[3], {}, _callBack );
return false;
}
Best.
|
|
|
André R.
Member since: 14 January 2008
Posts: 170
|
Tuesday 02 March 2010 10:15:07 am
Thanks Carlos, fixed in trunk rev. 101. and stable/1.0 rev. 102
|
|
You need to be logged in to post messages in the forums. New users may register here.