Commit 0f0a4513 authored by Francois Marier's avatar Francois Marier Committed by Richard Mansfield
Browse files

jquery ratings: 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.
Signed-off-by: default avatarFrancois Marier <francois@catalyst.net.nz>
parent e346bc7a
......@@ -375,9 +375,21 @@
$(function(){
$('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 #*/
})(jQuery);
/*# 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