Octopoos / SEBLOD

Build high-end websites with SEBLOD®, a CCK for Joomla!
https://www.seblod.com
GNU General Public License v2.0
126 stars 54 forks source link

To avoid "document.location.href='" & "'" to be added over javascript… #771

Open olivier-nolbert opened 9 months ago

olivier-nolbert commented 9 months ago

Issue : When we configure the button free to preform a task and call a process, the javascript code is encapsuled in a 'document.location.href' which avoids the button to work.

Fix : Add a test to check if there's a "javascript" string in the link. No : add the 'document.location.href', Yes : Just set the link as it is.