Avelsieve actually depends on a SquirrelMail plugin called javascript_libs. This isn't very stable, though. We're thus using scriptaculous and prototype directly. --- a/include/html_main.inc.php +++ b/include/html_main.inc.php @@ -40,9 +40,11 @@ if($javascript_on) { $this->js++; - if(in_array('javascript_libs', $plugins)) { + // Debian doesn't use this plugin but has prototype and + // scriptaculous available anyways + // if(in_array('javascript_libs', $plugins)) { $this->js++; - } + // } } $this->useimages = $useimages; $this->baseuri = sqm_baseuri(); --- a/setup.php +++ b/setup.php @@ -32,7 +32,7 @@ $squirrelmail_plugin_hooks['right_main_after_header']['avelsieve'] = 'avelsieve_right_main'; - $squirrelmail_plugin_hooks['javascript_libs_register']['avelsieve'] = 'avelsieve_register_jslibs'; + //$squirrelmail_plugin_hooks['javascript_libs_register']['avelsieve'] = 'avelsieve_register_jslibs'; $squirrelmail_plugin_hooks['generic_header']['avelsieve'] = 'avelsieve_generic_header'; @@ -153,12 +153,14 @@ if(stristr(basename($PHP_SELF), 'edit.php')) { // Edit page (edit.php) - $js = array('avelsieve_common.js', 'avelsieve_edit.js', 'prototype-base-extensions.js', 'prototype-date-extensions.js', 'datepicker.js'); + $js = array('avelsieve_common.js', 'avelsieve_edit.js', 'prototype-base-extensions.js', 'prototype-date-extensions.js', 'datepicker.js', + '../../../../javascript/scriptaculous/prototype.js', '../../../../javascript/scriptaculous/scriptaculous.js'); echo "\n".'<link rel="stylesheet" type="text/css" href="'.$base_uri.'plugins/avelsieve/styles/datepicker.css"></link>' . "\n"; } elseif(stristr(basename($PHP_SELF), 'table.php')) { // Table Page (table.php) - $js = array('avelsieve_common.js', 'avelsieve_table.js'); + $js = array('avelsieve_common.js', 'avelsieve_table.js', + '../../../../javascript/scriptaculous/prototype.js', '../../../../javascript/scriptaculous/scriptaculous.js'); echo '<style type="text/css">'.avelsieve_css_styles().'</style>'; } if(isset($js)) {