Commit b7457814 authored by Francois Marier's avatar Francois Marier
Browse files

jquery rating: add a pager hook for reskining

The pager causes elements to change and be displayed again so the
skinning performed by jquery.rating when first loaded needs to
happen everytime the page changes.

(cherry picked from commit 0f0a4513

)
Signed-off-by: default avatarFrancois Marier <francois@catalyst.net.nz>
Change-Id: I1c95cb9b95a4d52790d0456f96479e71a3a66c32
parent 218bb36f
...@@ -384,9 +384,21 @@ ...@@ -384,9 +384,21 @@
$(function(){ $(function(){
$('input[type=radio].star').rating(); $('input[type=radio].star').rating();
}); });
/* START OF MAHARA CUSTOMISATONS */
/* Make sure radio buttons are reskinned when paging */
function reskinRadioButtons() {
$('input[type=radio].star').rating();
}
$(function(){
var self = this;
if (typeof paginatorProxy != 'undefined') {
paginatorProxy.addObserver(self);
connect(self, 'pagechanged', reskinRadioButtons);
}
});
/* END OF MAHARA CUSTOMISATONS */
/*# AVOID COLLISIONS #*/ /*# AVOID COLLISIONS #*/
})(jQuery); })(jQuery);
/*# AVOID COLLISIONS #*/ /*# AVOID COLLISIONS #*/
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment