-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] [IAM-sprint] Remove inline scripts part I #14710
[4.0] [IAM-sprint] Remove inline scripts part I #14710
Conversation
media/system/js/core.js
Outdated
@@ -78,8 +78,41 @@ Joomla.editors.instances = Joomla.editors.instances || { | |||
/** | |||
* Default function. Usually would be overriden by the component |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this comment needs changing as well now ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It still can be removed by the component ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but its not "usually" any more :)
@franz-wohlkoenig that's unrelated to this PR, this is a PHP error meaning that the js functioned as expected (the form was submitted) but for some reason the actual save failed. |
here was merged 3 issue:
It is wrong approach, really wrong. And it need just for skip validation, and nothing more.
why it here at all?
this can return multiple forms, BUT you cannot submit them all (without ajax), always will be submitted only last from the array. |
@Fedik the permission part has been already moved to permissions.js |
Redo of #12399 .
Summary of Changes
Remove inline scripts:
editor.on('submit', ...)
Testing Instructions
Test that article save, save and new, save and close and cancel still works
Test that http://j4a.dev/administrator/index.php?option=com_config buttons: save, save and close, cancel still work as expected
Expected result
Same as before
Actual result
Same as before
Documentation Changes Required
There is one extra data attribute in the form tag named
data-cancel-task="string"
, which is required only for forms that the cancel task is not the default e.g.controllerName.cancel
.This will not affect any 3rd party app, the override still works as before 100% B/C !!!