pwtitle, I think I was able to recreate the missing functionality by using output buffering and assigning the results to a view variable as follows:
In the action's view:
<!-- // -------------------------------------------------------------------------------- // -->
<?php ob_start(); ?>
<script type="text/javascript">
$(document).ready(function () {
...
});
</script>
<?php $this->view->setVar('jscript', ob_get_clean()); ?>
<!-- // -------------------------------------------------------------------------------- // -->
Then, inside the modules "template" view, use that variables as follows:
<!-- Custom Page JavaScript -->
<?php if (isset($jscript) && $jscript): ?>
<?= $jscript; ?>
<?php endif; ?>
This will scoop up the custom JS, exclude it from the action's view, assign it to a view variable, and that variable can be used in the main template to render it in the correct position.
-- Dante