This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Form submission confirmation box
#1

I would like to change the time period (increase) of the fadeout effect in the form submission confirmation box. The one that says: Thank you Your comment ... blah blah blah ... Actually I would like for that green success box to remain un-faded just like the red error one. Could somebody point me to the right file / lines of code to accomplish this? Thank you.
Reply
#2

Got it ... it's not in css. The file that needs to be modified is includes/template/form.php

just comment out the following (line 626)

Modified script
Code:
<script type="text/javascript">
// <![CDATA[
jQuery(document).ready(function() {
    jQuery('.cmtx_approval_box'); //.delay(2000).fadeOut(2000);
    jQuery('.cmtx_success_box');//.delay(2000).fadeOut(2000);
});
// ]]>
</script>

as opposed to original script:
Code:
<script type="text/javascript">
// <![CDATA[
jQuery(document).ready(function() {
    jQuery('.cmtx_approval_box').delay(2000).fadeOut(2000);
    jQuery('.cmtx_success_box').delay(2000).fadeOut(2000);
});
// ]]>
</script>

That will have the desired effect of keeping the succes confirmation box active in the form area of the comments.
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
16-Feb-2018, 09:15 AM
Last Post by Wendon
20-Nov-2017, 03:36 PM
Last Post by Steven
02-Jun-2016, 08:55 PM
Last Post by Steven
10-Oct-2013, 09:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)