Issue Bug Closed

#81983JStop() in FormResultCompiler handles Stylesheets but not JavaScript

David Bruchmann 07/26/17, 22:43 updated 07/27/17, 07:38

Description

The function is remarkable wrong and noted like this:

    /**
     * JavaScript code added BEFORE the form is drawn:
     *
     * @return string A <script></script> section with JavaScript.
     */
    public function JStop()
    {
        $stylesheetHtml = [];
        foreach ($this->stylesheetFiles as $stylesheetFile) {
            $stylesheetHtml[] = '<link rel="stylesheet" type="text/css" href="' . $stylesheetFile . '" />';
        }
        return implode(LF, $stylesheetHtml);
    }

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.