Viewing 1 replies (of 1 total)
  • 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 ??

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: PTM AJAX Comments] Adding new comments on an AJAX loaded page’ is closed to new replies.