Posted by inforeto on March 11, 2008 at 10:44am
Jump to:
| Project: | Active Select |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Any text like php/mysql errors and devel output that get appended to the javascript file cause the script to stop.
The spinning icon doesn't stop and the select box shows the full list of options.
Perhaps a comment statement //
Comments
#1
Perhaps a comment statement / / < ! - - would prevent such random text to be run as illegal code.
//<!--(eh... text was filtered from the first post)
#2
I was able to supress devel output with
$GLOBALS['devel_shutdown'] = FALSE;As shown here: http://drupal.org/node/237239
Since i have no clue of where to put it in the module, i pasted the line on activeselect_set_header_nocache() thinking the headers run every time.
It is a small module, so there's not many places to try.
With this the throbber and the select boxes worked again, as javascript ran without error.
Must be in this module to supress the devel output for all the dependent modules at once.
(not just for the category module that was affected)
Found more cases of broken javascript in other drupal modules.
Naturally, devel is disabled to the end user, but needed in development and troubleshooting.