TacoCode
Forum Replies Created
-
Forum: Plugins
In reply to: [PTM AJAX Comments] [Plugin: PTM AJAX Comments] Return comment box on replyWill add that to the next release. Thanks for your input as well!
Forum: Plugins
In reply to: [PTM AJAX Comments] [Plugin: PTM AJAX Comments] Noscript Degradation?Will add that to the next release. Thanks for your input!
I’ve signed up on your site and left a test comment. It’s working fine.
Hi
Untested, but maybe this does the trick:
Use ‘ptm-ajax-comments.dev.js’
Lines 51 to 55:
jQuery('#submit').one("click", function() { jQuery('#'+css_commentform).after('<div id="ptm-ac-response" style="display:none;"></div>'); jQuery(this).after('<div id="ptm-ac-loader" style="display:none;"><img src="'+activityImage+'" alt="'+textAddingComment+'" /></div>'); });change to:
jQuery('#submit').live("click", function(e) { if(jQuery(e.target).data('beenclicked')!='yes') { jQuery('#'+css_commentform).after('<div id="ptm-ac-response" style="display:none;"></div>'); jQuery(this).after('<div id="ptm-ac-loader" style="display:none;"><img src="'+activityImage+'" alt="'+textAddingComment+'" /></div>'); } jQuery(e.target).data('beenclicked','yes'); });Line 57:
jQuery('#'+css_commentform).bind("submit", function()change to:
jQuery('#'+css_commentform).live("submit", function()Again, untested, but HTH 😉