No need to include prototype.js if including other script files
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 30 Jul 2009 18:32:26 +0000 (12:32 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 30 Jul 2009 18:33:29 +0000 (12:33 -0600)
45 files changed:
babel/lib/Babel.php
chora/annotate.php
chora/browsedir.php
chora/browsefile.php
chora/co.php
chora/diff.php
chora/patchsets.php
chora/stats.php
drag_n_drop_portal/index.php
folks/search.php
gollem/clipboard.php
gollem/manager.php
imp/acl.php
imp/compose.php
imp/contacts.php
imp/fetchmailprefs.php
imp/folders.php
imp/lib/Ajax/Imple/ContactAutoCompleter.php
imp/lib/Block/summary.php
imp/lib/DIMP.php
imp/lib/IMP.php
imp/lib/Mime/Viewer/Html.php
imp/lib/Mime/Viewer/Smime.php
imp/lib/UI/Message.php
imp/lib/prefs.php
imp/mailbox.php
imp/message.php
imp/pgp.php
imp/search.php
ingo/filters.php
kronolith/lib/Ajax/Imple/ContactAutoCompleter.php
kronolith/lib/Ajax/Imple/TagAutoCompleter.php
kronolith/lib/Kronolith.php
kronolith/templates/common-header.inc
nag/list.php
nag/tasks/index.php
news/lib/Block/jonah.php
skoli/data.php
skoli/list.php
skoli/search.php
skoli/templates/panel.inc
turba/contact.php
turba/lib/View/Browse.php
turba/search.php
turba/templates/prefs/columnselect.inc

index 52125f2..b018348 100644 (file)
@@ -15,9 +15,9 @@ class Babel {
        /* Check if an hooks file exist */
        if (file_exists(BABEL_BASE . '/config/hooks.php')) {
            include_once BABEL_BASE . '/config/hooks.php';
-           
+
            $func = '_babel_hook_' . $fname;
-           
+
            if (function_exists($func)) {
                $res = call_user_func($func, $info);
            } else {
@@ -27,47 +27,47 @@ class Babel {
            Translate_Display::warning(_("Hook file doesn't exist"));
        }
     }
-    
+
     function displayLanguage() {
        global $lang, $app;
-       
+
        if (!isset(Horde_Nls::$config['languages'][$lang])) {
            return;
        }
-       
+
        $res = sprintf(_("Language: %s (%s)"), Horde_Nls::$config['languages'][$lang], $lang);
        if ($app) {
            $res .= '&nbsp; | &nbsp; ' . sprintf(_("Module: %s"), $app);
        }
-       
+
        return $res;
     }
 
-    
+
     function ModuleSelection() {
        $html = '';
        $html .= '<span style="float:right">';
        $html .= '<form action="' . Horde::selfUrl() . '" method="post" name="moduleSelector">';
        $html .= '<select name="module" onchange="moduleSubmit()">';
-       
+
        $apps = array('ALL' => _("All Applications")) +  Babel::listApps();
-       
+
        foreach($apps as $app => $desc) {
            if (!Babel::hasPermission("module:$app")) {
                continue;
            }
-           
+
            if (Horde_Util::getFormData('module') == $app) {
                $html .= '<option class="control" value="' . $app . '" selected>' .  '+ ' . $desc;
            } else {
                $html .= '<option value="' . $app . '">' . '&#8211; ' . $desc;
            }
        }
-       
+
        $html .= '</select>';
        $html .= '</form>';
        $html .= '</span>';
-       
+
        $html .= '<script language="JavaScript" type="text/javascript">' . "\n";
        $html .= '<!--' . "\n";
        $html .= 'var loading;' . "\n";
@@ -80,39 +80,39 @@ class Babel {
        $html .= '</script>' . "\n";
        return $html;
     }
-    
+
     function LanguageSelection() {
        global $app;
-       
+
        $html = '';
        $html .= '<span style="float:right">';
        $html .= '<form action="' . Horde::selfUrl() . '" method="post" name="languageSelector">';
        $html .= '&nbsp;';
        $html .= '<input type="hidden" name="module" value="' . $app . '">';
        $html .= '<select name="display_language" onchange="languageSubmit()">';
-       
+
        $tests =  Horde_Nls::$config['languages'];
-       
+
        // Unset English
        unset($tests['en_US']);
-       
+
        foreach($tests as $dir => $desc) {
            if (!Babel::hasPermission("language:$dir")) {
                continue;
            }
-           
+
            if (isset($_SESSION['babel']['language']) && $dir == $_SESSION['babel']['language']) {
                $html .= '<option class="control" value="' . $dir . '" selected>' .  '+ ' . $desc;
            } else {
                $html .= '<option value="' . $dir . '">' . '&#8211; ' . $desc;
            }
        }
-       
+
        $html .= '</select>';
        $html .= '&nbsp;';
        $html .= '</form>';
        $html .= '</span>';
-       
+
        $html .= '<script language="JavaScript" type="text/javascript">' . "\n";
        $html .= '<!--' . "\n";
        $html .= 'var loading;' . "\n";
@@ -125,36 +125,36 @@ class Babel {
        $html .= '</script>' . "\n";
        return $html;
     }
-    
+
     function listApps($all = false) {
        global $registry;
 
        $res = array();
-       
+
        if ($all) {
            $res['ALL'] = _("All Applications");
        }
-       
+
        foreach ($registry->applications as $app => $params) {
            if ($params['status'] == 'heading' || $params['status'] == 'block') {
                continue;
            }
-           
+
            if (isset($params['fileroot']) && !is_dir($params['fileroot'])) {
                continue;
            }
-           
+
            if (preg_match('/_reports$/', $app) || preg_match('/_tools$/', $app)) {
                continue;
            }
-           
+
            if (Babel::hasPermission("module:$app")) {
                $res[$app] = sprintf("%s (%s)", $params['name'], $app);
            }
        }
        return $res;
     }
-      
+
     /**
      * Returns the value of the specified permission for $userId.
      *
@@ -163,16 +163,16 @@ class Babel {
     function hasPermission($permission, $filter = null, $perm = null)
     {
        global $perms;
-       
+
        $userId = Horde_Auth::getAuth();
        $admin = ($userId == 'admin') ? true : false;
-       
+
        if ($admin || !$perms->exists('babel:' . $permission)) {
            return true;
        }
-       
+
        $allowed = $perms->getPermissions('babel:' . $permission);
-       
+
        switch ($filter) {
         case 'tabs':
            if ($perm) {
@@ -191,7 +191,7 @@ class Babel {
         global $registry;
 
        $menu = new Horde_Menu();
-       
+
         $menu->addArray(array('url' => Horde::applicationUrl('index.php'),
                              'text' => _("_General"),
                              'icon' => 'list.png'));
@@ -201,19 +201,19 @@ class Babel {
                                  'text' => _("_View"),
                                  'icon' => 'view.png'));
        }
-       
+
        if (Babel::hasPermission('stats')) {
            $menu->addArray(array('url' => Horde::applicationUrl('stats.php'),
                                  'text' => _("_Stats"),
                                  'icon' => 'extract.png'));
        }
-       
+
        if (Babel::hasPermission('extract')) {
            $menu->addArray(array('url' => Horde::applicationUrl('extract.php'),
                                  'text' => _("_Extract"),
                                  'icon' => 'extract.png'));
        }
-       
+
        if (Babel::hasPermission('make')) {
            $menu->addArray(array('url' => Horde::applicationUrl('make.php'),
                                  'text' => _("_Make"),
@@ -238,20 +238,20 @@ class Babel {
      **/
     function sendEmail($email, $type = 'html', $attachments = array()) {
        global $client, $scopserv;
-       
+
        include_once("Mail.php");
        include_once("Mail/mime.php");
 
        $headers["From"]    = $email['from'];
        $headers["Subject"] = $email['subject'];
-       
+
        $mime = new Mail_Mime();
        if ($type == 'html') {
            $mime->setHtmlBody($email['content']);
        } else {
            $mime->setTxtBody($email['content']);
        }
-       
+
        if (!empty($attachments)) {
            foreach ($attachments as $info) {
                $mime->addAttachment($info['file'],
@@ -259,23 +259,22 @@ class Babel {
                                     $info['name'], false);
            }
        }
-       
+
        $body = $mime->get();
        $hdrs = $mime->headers($headers);
-       
+
        $mail_object = &Mail::factory("mail");
        return $mail_object->send($email['to'], $hdrs, $body);
     }
 
 
     function RB_init() {
-       Horde::addScriptFile('prototype.js', 'horde', true);
        Horde::addScriptFile('effects.js', 'horde', true);
        Horde::addScriptFile('redbox.js', 'horde', true);
     }
-    
+
     function RB_start($secs = 30) {
-       
+
        $msg = '';
        $msg .= '<table width=100% id="RB_confirm"><tr><td>';
        $msg .= '<b>' . _("Please be patient ...") . '</b>';
@@ -291,9 +290,9 @@ class Babel {
                $msg .= addslashes(sprintf(_("Can take up to %d minutes !"), $min));
            }
        }
-       
+
        $msg .= '</td><td><img src="themes/graphics/redbox_spinner.gif">';
-       
+
        $msg .= '</td></tr></table>';
        echo '<script>';
        echo 'RedBox.loading();';
@@ -307,5 +306,5 @@ class Babel {
        echo 'RedBox.close();';
        echo '</script>';
     }
-    
+
 }
index 788ab7a..da5e952 100644 (file)
@@ -46,7 +46,6 @@ $extraLink = sprintf('<a href="%s">%s</a> | <a href="%s">%s</a>',
                      Chora::url('co', $where, array('r' => $rev)), _("View"),
                      Chora::url('co', $where, array('r' => $rev, 'p' => 1)), _("Download"));
 
-Horde::addScriptFile('prototype.js', 'chora', true);
 Horde::addScriptFile('annotate.js', 'chora', true);
 
 $js_vars = array(
index 79611a5..4da275b 100644 (file)
@@ -67,7 +67,6 @@ if ($VC->hasFeature('branches')) {
 $printAllCols = count($fileList);
 $sortdirclass = $acts['sbt'] ? 'sortdown' : 'sortup';
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('tables.js', 'horde', true);
 require CHORA_TEMPLATES . '/common-header.inc';
 require CHORA_TEMPLATES . '/menu.inc';
index ac7ee6f..0f76d95 100644 (file)
@@ -46,7 +46,6 @@ if ($VC->hasFeature('branches')) {
     }
 }
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('tables.js', 'horde', true);
 Horde::addScriptFile('QuickFinder.js', 'horde', true);
 Horde::addScriptFile('revlog.js', 'chora', true);
index d93e6e0..df32463 100644 (file)
@@ -85,7 +85,6 @@ if (!$plain) {
     $log_print = Chora::formatLogMessage($log->queryLog());
     $author = Chora::showAuthorName($log->queryAuthor(), true);
 
-    Horde::addScriptFile('prototype.js', 'horde', true);
     Horde::addScriptFile('stripe.js', 'horde', true);
     require CHORA_TEMPLATES . '/common-header.inc';
     require CHORA_TEMPLATES . '/menu.inc';
index df97b80..f8bea1a 100644 (file)
@@ -80,7 +80,6 @@ foreach ($VC->getRevisionRange($fl, $r1, $r2) as $val) {
 /* Get list of diff types. */
 $diff_types = array_flip($VC->availableDiffTypes());
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('stripe.js', 'horde', true);
 require CHORA_TEMPLATES . '/common-header.inc';
 require CHORA_TEMPLATES . '/menu.inc';
index 17dcde2..0ac012b 100644 (file)
@@ -42,7 +42,6 @@ if (empty($patchsets)) {
 
 $extraLink = Chora::getFileViews($where, 'patchsets');
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('tables.js', 'horde', true);
 
 // JS search not needed if showing a single patchset
index cb042af..48b4d7d 100644 (file)
@@ -29,7 +29,6 @@ foreach ($fl->queryLogs() as $lg) {
 arsort($stats);
 
 $title = sprintf(_("Statistics for %s"), Horde_Text_Filter::filter($where, 'space2html', array('charset' => Horde_Nls::getCharset(), 'encode' => true, 'encode_all' => true)));
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('tables.js', 'horde', true);
 require CHORA_TEMPLATES . '/common-header.inc';
 require CHORA_TEMPLATES . '/menu.inc';
index 51782d7..07cace8 100644 (file)
@@ -29,7 +29,6 @@ $layout_html = $view->toHtml();
 
 $title = _("Edit yout profile page");
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('effects.js', 'horde', true);
 Horde::addScriptFile('redbox.js', 'horde', true);
 require HORDE_TEMPLATES . '/common-header.inc';
index a0fde7b..e6e5f06 100644 (file)
@@ -82,7 +82,6 @@ if (Horde_Auth::isAuthenticated()) {
 }
 
 Horde::addScriptFile('stripe.js', 'horde', true);
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('effects.js', 'horde', true);
 Horde::addScriptFile('redbox.js', 'horde', true);
 Horde::addScriptFile('search.js', 'folks', true);
index 9f3ef9d..9754063 100644 (file)
@@ -16,7 +16,6 @@ require_once dirname(__FILE__) . '/lib/base.php';
 $dir = Horde_Util::getFormData('dir');
 
 $title = _("Clipboard");
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('tables.js', 'horde', true);
 require GOLLEM_TEMPLATES . '/common-header.inc';
 Gollem::menu();
index 2470d37..2d2cb51 100644 (file)
@@ -555,7 +555,6 @@ $js_code = array(
     'var warn_recursive = ' . intval($GLOBALS['prefs']->getValue('recursive_deletes') == 'warn'),
 );
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('manager.js', 'gollem', true);
 Horde::addScriptFile('popup.js', 'gollem', true);
 Horde::addScriptFile('tables.js', 'horde', true);
index 91bbe57..a755ba5 100644 (file)
@@ -197,7 +197,6 @@ $t->set('rights', $rightsval);
 $t->set('width', round(100 / (count($rightsval) + 1)) . '%');
 $t->set('prefsurl', $prefs_url);
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('acl.js', 'imp', true);
 echo $t->fetch(IMP_TEMPLATES . '/acl/acl.html');
 if (!$chunk) {
index 42808fe..e3ca9b8 100644 (file)
@@ -1218,7 +1218,6 @@ if ($redirect) {
     $template_output = $t->fetch(IMP_TEMPLATES . '/compose/compose.html');
 }
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('compose.js', 'imp', true);
 require IMP_TEMPLATES . '/common-header.inc';
 Horde::addInlineScript($js_code);
index 7f1aeb5..fcba21e 100644 (file)
@@ -99,7 +99,6 @@ $template->set('sa', $selected_addresses);
 
 /* Display the form. */
 $title = _("Address Book");
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('contacts.js', 'imp', true);
 require IMP_TEMPLATES . '/common-header.inc';
 Horde::addInlineScript(array(
index 3de6c80..07fef98 100644 (file)
@@ -181,7 +181,6 @@ if (empty($actionID)) {
 }
 
 Prefs_UI::generateHeader(null, $chunk);
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('fetchmailprefs.js', 'imp', true);
 
 $charset = Horde_Nls::getCharset();
index 2b7a951..5bfc021 100644 (file)
@@ -35,7 +35,6 @@ function _image($name, $alt, $type)
 }
 
 require_once dirname(__FILE__) . '/lib/base.php';
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('folders.js', 'imp', true);
 
 /* Redirect back to the mailbox if folder use is not allowed. */
index ff3cf20..27f55ee 100644 (file)
@@ -52,7 +52,6 @@ class IMP_Ajax_Imple_ContactAutoCompleter extends Horde_Ajax_Imple_Base
      */
     public function attach()
     {
-        Horde::addScriptFile('prototype.js', 'horde', true);
         Horde::addScriptFile('effects.js', 'horde', true);
         Horde::addScriptFile('autocomplete.js', 'horde', true);
 
index d644ff4..9ab3da3 100644 (file)
@@ -103,7 +103,6 @@ class Horde_Block_imp_summary extends Horde_Block
         if ($prefs->getValue('nav_popup')) {
             // Always include these scripts so they'll be there if
             // there's new mail in later dynamic updates.
-            Horde::addScriptFile('prototype.js', 'horde', true);
             Horde::addScriptFile('effects.js', 'horde', true);
             Horde::addScriptFile('redbox.js', 'horde', true);
         }
index 63e6f1e..231dea2 100644 (file)
@@ -63,7 +63,6 @@ class DIMP
     {
         // Need to include script files before we start output
         $core_scripts = array(
-            array('prototype.js', 'horde', true),
             array('effects.js', 'horde', true),
             array('horde.js', 'horde', true),
             array('DimpCore.js', 'imp', true),
index 46546f0..5c9a97e 100644 (file)
@@ -405,7 +405,6 @@ class IMP
         if (($view != 'mimp') &&
             $GLOBALS['prefs']->getValue('compose_popup') &&
             $GLOBALS['browser']->hasFeature('javascript')) {
-            Horde::addScriptFile('prototype.js', 'horde', true);
             Horde::addScriptFile('imp.js', 'imp', true);
             if (isset($args['to'])) {
                 $args['to'] = addcslashes($args['to'], '\\"');
@@ -587,7 +586,6 @@ class IMP
 
         if (($_SESSION['imp']['protocol'] != 'pop') &&
             $prefs->getValue('fetchmail_menu')) {
-            Horde::addScriptFile('prototype.js', 'horde', true);
             Horde::addScriptFile('effects.js', 'horde', true);
             Horde::addScriptFile('redbox.js', 'horde', true);
             Horde::addScriptFile('dialog.js', 'imp', true);
@@ -762,7 +760,6 @@ class IMP
         }
         $t_html = str_replace("\n", ' ', $t->fetch(IMP_TEMPLATES . '/newmsg/alert.html'));
 
-        Horde::addScriptFile('prototype.js', 'horde', true);
         Horde::addScriptFile('effects.js', 'horde', true);
         Horde::addScriptFile('redbox.js', 'horde', true);
         return 'RedBox.overlay = false; RedBox.showHtml(\'' . addcslashes($t_html, "'/") . '\');';
@@ -1230,7 +1227,6 @@ class IMP
     static public function passphraseDialogJS($type, $action = null,
                                               $params = array())
     {
-        Horde::addScriptFile('prototype.js', 'horde', true);
         Horde::addScriptFile('effects.js', 'horde', true);
         Horde::addScriptFile('redbox.js', 'horde', true);
         Horde::addScriptFile('dialog.js', 'imp', true);
index 421613c..a060b00 100644 (file)
@@ -199,8 +199,7 @@ class IMP_Horde_Mime_Viewer_Html extends Horde_Mime_Viewer_Html
             $addr_check = ($GLOBALS['prefs']->getValue('html_image_addrbook') && $this->_inAddressBook());
 
             if (!$view_img && !$addr_check) {
-                $data .= Horde_Util::bufferOutput(array('Horde', 'addScriptFile'), 'prototype.js', 'horde', true) .
-                    Horde_Util::bufferOutput(array('Horde', 'addScriptFile'), 'imp.js', 'imp', true);
+                $data .= Horde_Util::bufferOutput(array('Horde', 'addScriptFile'), 'imp.js', 'imp', true);
 
                 // Unblock javascript code in js/src/imp.js
                 $cleanhtml['status'][] = array(
index c18b8ba..22ffbd1 100644 (file)
@@ -71,7 +71,6 @@ class IMP_Horde_Mime_Viewer_Smime extends Horde_Mime_Viewer_Driver
         } else {
             /* We need to insert JavaScript code now if S/MIME support is
              * active. */
-            Horde::addScriptFile('prototype.js', 'horde', true);
             Horde::addScriptFile('imp.js', 'imp', true);
         }
 
index ec58aec..50c4cc6 100644 (file)
@@ -397,8 +397,6 @@ class IMP_UI_Message
             $addr_count = count($addr_array);
             $ret = '<span class="nowrap">' . implode(',</span> <span class="nowrap">', $addr_array) . '</span>';
             if ($link && $addr_count > 15) {
-                Horde::addScriptFile('prototype.js', 'horde', true);
-
                 $ret = '<span>' .
                     '<span onclick="[ this, this.next(), this.next(1) ].invoke(\'toggle\')" class="widget largeaddrlist">' . sprintf(_("[Show Addresses - %d recipients]"), $addr_count) . '</span>' .
                     '<span onclick="[ this, this.previous(), this.next() ].invoke(\'toggle\')" class="widget largeaddrlist" style="display:none">' . _("[Hide Addresses]") . '</span>' .
index 6b0eef3..646bb8b 100644 (file)
@@ -250,7 +250,6 @@ if (!Horde_Auth::isAuthenticated('imp')) {
  * HEAD. */
 switch ($group) {
 case 'flags':
-    Horde::addScriptFile('prototype.js', 'horde', true);
     Horde::addScriptFile('colorpicker.js', 'horde', true);
     Horde::addScriptFile('flagmanagement.js', 'imp', true);
 
index 71babe6..70c28b1 100644 (file)
@@ -386,7 +386,6 @@ if ($vfolder || $search_mbox) {
     $pagetitle = $title = htmlspecialchars($title);
 }
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('effects.js', 'horde', true);
 Horde::addScriptFile('redbox.js', 'horde', true);
 Horde::addScriptFile('mailbox.js', 'imp', true);
index 8958e00..6b980c2 100644 (file)
@@ -714,7 +714,6 @@ $m_template->set('headers', $hdrs);
 $m_template->set('msgtext', $msgtext);
 
 /* Output message page now. */
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('effects.js', 'horde', true);
 Horde::addScriptFile('imp.js', 'imp', true);
 Horde::addScriptFile('message.js', 'imp', true);
index 67adb0e..2e434be 100644 (file)
@@ -304,7 +304,6 @@ Prefs_UI::generateHeader('pgp', $chunk);
 $t = new Horde_Template();
 $t->setOption('gettext', true);
 if ($prefs->getValue('use_pgp')) {
-    Horde::addScriptFile('prototype.js', 'horde', true);
     Horde::addScriptFile('imp.js', 'imp', true);
     $t->set('pgpactive', true);
     $t->set('overview-help', Horde_Help::link('imp', 'pgp-overview'));
index 48040b3..bca7e2d 100644 (file)
@@ -340,7 +340,6 @@ if (empty($search['mbox'])) {
 }
 
 $title = _("Message Search");
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('stripe.js', 'horde', true);
 Horde::addScriptFile('search.js', 'imp', true);
 require IMP_TEMPLATES . '/common-header.inc';
index 12456d4..a37c794 100644 (file)
@@ -139,7 +139,6 @@ case 'apply_filters':
 /* Get the list of rules now. */
 $filter_list = $filters->getFilterList();
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('tooltips.js', 'horde', true);
 Horde::addScriptFile('stripe.js', 'horde', true);
 $title = _("Filter Rules");
index d979464..a8f9d80 100644 (file)
@@ -38,7 +38,6 @@ class Kronolith_Ajax_Imple_ContactAutoCompleter extends Horde_Ajax_Imple_Base
      */
     public function attach()
     {
-        Horde::addScriptFile('prototype.js', 'horde', true);
         Horde::addScriptFile('effects.js', 'horde', true);
         Horde::addScriptFile('autocomplete.js', 'horde', true);
 
index e51f7b2..b10d8c3 100644 (file)
@@ -39,7 +39,6 @@ class Kronolith_Ajax_Imple_TagAutoCompleter extends Horde_Ajax_Imple_Base
      */
     public function attach()
     {
-        Horde::addScriptFile('prototype.js', 'horde', true);
         Horde::addScriptFile('effects.js', 'horde', true);
         Horde::addScriptFile('autocomplete.js', 'horde', true);
 
index 052d9e1..3d1d383 100644 (file)
@@ -69,7 +69,6 @@ class Kronolith
     public static function header($title, $scripts = array())
     {
         // Need to include script files before we start output
-        Horde::addScriptFile('prototype.js', 'horde', true);
         Horde::addScriptFile('effects.js', 'horde', true);
         Horde::addScriptFile('horde.js', 'horde', true);
         Horde::addScriptFile('dragdrop2.js', 'horde', true);
index d556fb8..5211209 100644 (file)
@@ -1,6 +1,5 @@
 <?php
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('effects.js', 'horde', true);
 Horde::addScriptFile('views.js', 'kronolith', true);
 Horde::addScriptFile('stripe.js', 'horde', true);
index 0815790..e7fe3ce 100644 (file)
@@ -88,7 +88,6 @@ $print_view = (bool)$vars->print;
 if (!$print_view) {
     Horde::addScriptFile('popup.js', 'horde', true);
     Horde::addScriptFile('tooltips.js', 'horde', true);
-    Horde::addScriptFile('prototype.js', 'horde', true);
     Horde::addScriptFile('effects.js', 'horde', true);
     Horde::addScriptFile('QuickFinder.js', 'horde', true);
     $print_link = Horde::applicationUrl(Horde_Util::addParameter('list.php', array('print' => 1)));
index d6c040c..8217002 100644 (file)
@@ -47,7 +47,6 @@ $actionID = null;
 
 Horde::addScriptFile('popup.js', 'horde', true);
 Horde::addScriptFile('tooltips.js', 'horde', true);
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('effects.js', 'horde', true);
 Horde::addScriptFile('QuickFinder.js', 'horde', true);
 
index 5cb05e4..0de51fc 100755 (executable)
@@ -49,11 +49,10 @@ class Horde_Block_News_jonah extends Horde_Block {
         }
         $html .= '</select></form>';
 
-        Horde::addScriptFile('prototype.js', 'horde', true);
         Horde::addScriptFile('effects.js', 'horde', true);
         Horde::addScriptFile('redbox.js', 'horde', true);
         Horde::addScriptFile('feed.js', 'news', true);
 
         return $html;
     }
-}
\ No newline at end of file
+}
index 316225d..91d5876 100644 (file)
@@ -176,7 +176,6 @@ case 'export':
 
 $title = _("Export Classes");
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('effects.js', 'horde', true);
 Horde::addScriptFile('redbox.js', 'horde', true);
 require SKOLI_TEMPLATES . '/common-header.inc';
index eae37c6..7aa3ec9 100644 (file)
@@ -102,7 +102,6 @@ default:
 
 Horde::addScriptFile('popup.js', 'horde', true);
 Horde::addScriptFile('tooltips.js', 'horde', true);
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('effects.js', 'horde', true);
 Horde::addScriptFile('QuickFinder.js', 'horde', true);
 
index 0193299..220318a 100644 (file)
@@ -122,7 +122,6 @@ if ($conf['objects']['allow_absences']) {
 $title = _("Search");
 $notification->push('document.skoli_searchform.stext.focus();', 'javascript');
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('QuickFinder.js', 'horde', true);
 Horde::addScriptFile('effects.js', 'horde', true);
 Horde::addScriptFile('redbox.js', 'horde', true);
@@ -148,8 +147,8 @@ if ($actionID == 'search') {
 
             switch ($entry['type']) {
             case 'mark':
-                $details = $entry['subject'] . ': ' . $entry['mark'] . 
-                           ($classes[$entry['classid']]->get('marks') == 'percent' ? '%' : '') . 
+                $details = $entry['subject'] . ': ' . $entry['mark'] .
+                           ($classes[$entry['classid']]->get('marks') == 'percent' ? '%' : '') .
                            ' (' . $entry['weight'] . '), ' . $entry['title'];
                 break;
 
@@ -158,8 +157,8 @@ if ($actionID == 'search') {
                 break;
 
             case 'outcome':
-                $details = $entry['outcome'] . ': ' . 
-                           (isset($entry['completed']) && $entry['completed'] != '' ? _("Completed") : _("Open")) . 
+                $details = $entry['outcome'] . ': ' .
+                           (isset($entry['completed']) && $entry['completed'] != '' ? _("Completed") : _("Open")) .
                            (isset($entry['comment']) && $entry['comment'] != '' ? ', ' . $entry['comment'] : '');
                 break;
 
index a65b4d6..a023bf6 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('QuickFinder.js', 'horde', true);
 
 $current_user = Horde_Auth::getAuth();
index 024518c..baab1dd 100644 (file)
@@ -102,7 +102,6 @@ if ($own_source == $source && $own_id == $contact->getValue('__key')) {
 }
 
 $title = $view->getTitle();
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('contact_tabs.js', 'turba', true);
 require TURBA_TEMPLATES . '/common-header.inc';
 if ($print_view) {
index 72c821e..09d6df5 100644 (file)
@@ -383,7 +383,6 @@ class Turba_View_Browse {
             $templates[] = '/browse/header.inc';
         }
 
-        Horde::addScriptFile('prototype.js', 'horde', true);
         Horde::addScriptFile('QuickFinder.js', 'horde', true);
         Horde::addScriptFile('effects.js', 'horde', true);
         Horde::addScriptFile('redbox.js', 'horde', true);
index e8851fc..7b729c9 100644 (file)
@@ -182,7 +182,6 @@ if ($_SESSION['turba']['search_mode'] == 'basic') {
     $notification->push('document.directory_search.name.focus();', 'javascript');
 }
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('QuickFinder.js', 'horde', true);
 Horde::addScriptFile('effects.js', 'horde', true);
 Horde::addScriptFile('redbox.js', 'horde', true);
index 20f3f3e..4a9c26b 100644 (file)
@@ -1,6 +1,5 @@
 <?php if (!$prefs->isLocked('columns')):
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('effects.js', 'horde', true);
 Horde::addScriptFile('dragdrop.js', 'horde', true);