ui icon indicating copy to clipboard operation
ui copied to clipboard

FUI modal should be generated from php only

Open mvorisek opened this issue 1 year ago • 1 comments

Currently there are two locations where FUI modal is generated without php:

https://github.com/atk4/ui/blob/8a359e0975/js/src/JqueryPlugin/ConfirmPlugin.js and https://github.com/atk4/ui/blob/8a359e0975/js/src/JqueryPlugin/CreateModalPlugin.js

If there should be no roundtrip between client and server, they can be pregenerated, but never constructed within js only.

mvorisek avatar Nov 22 '24 16:11 mvorisek

As the JS calls should be coded from PHP only, I belive we should introduce something like "named JS code". We should however name it implicitly by its hash and ship it to the client only once.

mvorisek avatar Feb 10 '25 11:02 mvorisek