Skip to content
Snippets Groups Projects
Commit 7af551f9 authored by Sergiu Dumitriu's avatar Sergiu Dumitriu
Browse files

[misc] More permissive selector

parent 8c9f3351
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@
* duplicating the code from actionButtons.js.
*/
function enhanceNextStepButton(nextStepButton, actionButtons) {
var saveAndViewButton = actionButtons.down("input[name='xaction_save']");
var saveAndViewButton = actionButtons.down("input[name$='action_save']");
// Replace the 'Next Step' button with the 'Save & View' button.
nextStepButton.insert({before: saveAndViewButton}).remove();
Object.extend(saveAndViewButton, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment