/[drupal]/contributions/modules/addtofavorites/addtofavorites.js
ViewVC logotype

Contents of /contributions/modules/addtofavorites/addtofavorites.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Mon Oct 16 15:25:04 2006 UTC (3 years, 1 month ago) by thierrygd
Branch: MAIN
CVS Tags: DRUPAL-6--2-1, DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5, DRUPAL-4-7, DRUPAL-5--1-4
Changes since 1.2: +5 -1 lines
File MIME type: text/javascript
no message
1 /**
2 *
3 **/
4
5 function addtofavorites(url, description)
6 {
7 if (window.sidebar) // Mozilla Firefox
8 {
9 window.sidebar.addPanel(description, url,"");
10 }
11 else if( document.all ) //IE
12 {
13 window.external.AddFavorite(url, description);
14 }
15 else
16 {
17 return true;
18 }
19 }

  ViewVC Help
Powered by ViewVC 1.1.2