Javascript error

This commit is contained in:
Mike Jolley 2011-09-29 16:07:13 +01:00
parent 4a1cf5dfba
commit 80b092f865
2 changed files with 12 additions and 8 deletions

View File

@ -58,6 +58,8 @@ The manual installation involves downloading the plugin and uploading it to your
* Variation formatting uses item_meta when showing order items
* Javascript fixes in admin + correct enqueuing of scripts
* Added en_GB po file
* Used dbDelta for installation of tables for better table upgrades/installs
* Fix for reviews form when fancybox is turned off
= 1.0 =
* Initial Release. Woo!

View File

@ -100,14 +100,16 @@
<script type="text/javascript">
/* <![CDATA[ */
jQuery(function(){
jQuery('#review_form_wrapper').hide();
jQuery('a.show_review_form').fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'speedIn' : 600,
'speedOut' : 200,
'overlayShow' : true
});
if($().fancybox) {
jQuery('#review_form_wrapper').hide();
jQuery('a.show_review_form').fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'speedIn' : 600,
'speedOut' : 200,
'overlayShow' : true
});
}
});
/* ]]> */
</script>