Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

FW_Flash_Messages styling/structure

Open martinburdon opened this issue 11 years ago • 2 comments

Hi,

I'm wanting to customise how popups are displayed by altering the markup the messages are displayed in. Mainly the contact forms success and error popups.

I know I could edit this: https://github.com/ThemeFuse/Unyson/blob/a2adef26229f5ad1ad015b0b74f657aa59f21235/framework/static/js/fw-form-helpers.js#L57-L76

However I'd then have to do the same for the onErrors callback and anywhere else I want to change the output.

Is there a better way to do what I want to do?

Thanks

martinburdon avatar Apr 21 '15 20:04 martinburdon

Hello,

However I'd then have to do the same for the onErrors callback and anywhere else

Can you tell me please where else?

Is there a better way to do what I want to do?

I don't know any other way.

But it seems simple:

ghost avatar Apr 21 '15 21:04 ghost

Thanks, I copied fwForm.frontend.renderFlashMessages which allows me to modify the output, that'll work just fine :+1:

martinburdon avatar Apr 22 '15 12:04 martinburdon