Closed (fixed)
Project:
Contact ajax
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2017 at 00:17 UTC
Updated:
9 Apr 2018 at 14:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
johnpitcairn commentedI see there is a TODO in the module code ;-)
Comment #3
ziomizar commentedHi John Pitcairn,
This is something that i would to have on this module, but i just let a comment on the code because this functionality seems to be more tricky that i thought.
If someone have suggestions or ideas on how to implement it correctly is welcome.
Comment #4
johnpitcairn commentedCould you post a bit about what you already tried, and why it turned out to be tricky?
Comment #5
johnpitcairn commentedThis patch works for me.
I have renamed the
CONTACT_AJAX_LOAD_FORMconstant to CONTACT_AJAX_LOAD_DEFAULT_MESSAGE, and that remains the default. This will ensure no sites have the form appearing unexpectedly.There is a new setting option, "Default message and empty form" which will reload a clean form with any system messages above it.
Comment #7
johnpitcairn commentedDidn't update the changed constant in the tests. Try this one.
Comment #8
johnpitcairn commentedComment #9
ziomizar commentedHi John Pitcairn, many thanks to work on this!
I haven't tested it yet but looking into the code i noticed to main things:
1. You are using tabs instead of spaces. Coding standard needs 2 spaces instead of a tab.
2. Why this has been removed?
Comment #10
johnpitcairn commented1 - I don't think PhpStorm correctly set the project style. Will fix.
2 - Accident. Will fix.
Comment #11
johnpitcairn commentedComment #12
johnpitcairn commentedAnd fixed, I think.
Comment #14
ziomizar commentedPushed on 8.x-1.x-dev. Thanks!