mxmai
Forum Replies Created
-
And this seems to fix it:
new code:
// hide/show additional payment option fields var ebTecAcceptPaymentInputs = jQuery('#eb-tec-payment-options-checkboxes input'); // initially show payment option fields that aren't blank. function ebTecShowHideAdditionalPaymentOptions() { jQuery('#eb-tec-payment-options-checkboxes ~ #eb-tec-payment-options div').each(function() { var thisInput = jQuery(this).find('input'); if(thisInput.val() != null) thisInput.closest('div').slideDown(200); }); } ebTecShowHideAdditionalPaymentOptions(); // bind our show/hide function. ebTecAcceptPaymentInputs.change(function() { var divIndex = ebTecAcceptPaymentInputs.index(this) + 1; if(this.checked){ jQuery('#eb-tec-payment-options div:eq('+divIndex+')').slideDown(200); } else{ jQuery('#eb-tec-payment-options div:eq('+divIndex+')').slideUp(200); } });
Also fixes the problem of the payment options not dropping down the first time you click a checkbox (in the original code the show/hide function is only bound to the change event after the first click).
I think the jQuery.each call is the problem, if you replace it with jQuery(selector).each (which is a different function) it appears to work fine.
Interested to see if this fixes it for everybody else.
The problematic code seems to be:
in views/eventbrite-meta-box-extension.php:
original code:
// hide/show additional payment option fields var ebTecAcceptPaymentInputs = jQuery('#eb-tec-payment-options-checkboxes input'); function ebTecShowHideAdditionalPaymentOptions(event) { if(event) { ebTecAcceptPaymentInputs.change(function() { var divIndex = ebTecAcceptPaymentInputs.index(this) + 1; if(this.checked) jQuery('#eb-tec-payment-options div:eq('+divIndex+')').slideDown(200); else jQuery('#eb-tec-payment-options div:eq('+divIndex+')').slideUp(200); }); } else { jQuery.each('#eb-tec-payment-options-checkboxes ~ #eb-tec-payment-options div', function() { var thisInput = jQuery(this).find('input'); if(thisInput.val() != null) thisInput.closest('div').slideDown(200); }); } } ebTecShowHideAdditionalPaymentOptions(); ebTecAcceptPaymentInputs.bind('click', ebTecShowHideAdditionalPaymentOptions);
Bump. Also getting this problem in IE8 after adding EventBrite to the Events Calendar. Seems to prevent users from editing event properties too (presumably the script terminates at that point.)
Forum: Fixing WordPress
In reply to: Permalinks 404 with custom post type.I’ve found you only need to call flush_rewire_rules once after you’ve set up your custom post type, not every time you load the page.
still a bit mysterious how it’s all working though.
Forum: Fixing WordPress
In reply to: Can’t Create Line Breaks ARGH!!if you use the TinyMCE Advanced plugin, there’s an option to disable wordpress removing your extra line breaks. been fiddling around with this for a couple of hours now and that seems to be the simplest workaround.