taarna23
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Disable “Submit” after click in Contact Form 7I’ve made a minor modification to sandro’s solution so that it can be embedded as a javascript snippet (we use a visual composer thing at work). I tested it with the chrome console emulating a slow connection so I could observe the enabled/disabled change happen. Also, if you want to just drop this anywhere in a page (under the assumption that said page is already utilizing jQuery), you can simply Enclose it in a <script></script> tag pair.
It’s worth noting that copy/pasting plain text off of here does indeed cause some issues with single and double quotes. I don’t know if that applies to things enclosed in the code tags on here, but sandro’s solution does require some quote-checking.
(function($) { $(document).ready(function() { fixCF7MultiSubmit(); function fixCF7MultiSubmit(){ jQuery('input.wpcf7-submit[type="submit"]').click(function() { var disabled = jQuery(this).attr('data-disabled'); if (disabled && disabled == "disabled") { return false; } else { jQuery(this).attr('data-disabled',"disabled"); return true; } }); jQuery('.wpcf7').bind("wpcf7submit",function(){ jQuery(this).find('input.wpcf7-submit[type="submit"]').attr('data-disabled',"enabled"); }); } }); }(jQuery));
Forum: Fixing WordPress
In reply to: 503 Service UnavailableI’m not totally sure about this being a hosting issue (but it is worth noting my knowledge of server-side things may be somewhat lacking). I’m having the same problem on any of my front-facing pages, posts, etc, however, I am having no issue at all with the back end of my site. I can still upload media, make posts, etc. I have attempted the re-install option, to no avail. This only began with the most recent update.