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

Contents of /contributions/modules/contextlinks/contextlinks.js

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


Revision 1.4 - (show annotations) (download) (as text)
Thu Feb 15 16:42:51 2007 UTC (2 years, 9 months ago) by jhriggs
Branch: MAIN
CVS Tags: DRUPAL-5--1-1, DRUPAL-5--1-0, DRUPAL-5--1-2, HEAD
Branch point for: DRUPAL-5
Changes since 1.3: +5 -24 lines
File MIME type: text/javascript
  - release 5.x-1.0
  - contextlinks.module
    - updated for Drupal 5 (addresses feature 105601 requested by vb)
    - add URL template to classes for shorthand links for searches or
      other uses (http://google.com/search?q={}&lr=lang_sr) (addresses
      feature 28260 requested by flevour)
  - contextlinks.js: updated for jQuery in Drupal 5
  - contextlinks.info: new file
  - contextlinks.install
    - remove ctime, mtime, uid
    - add url_template
    - add google, amazon template examples
  - INSTALL.txt, README.txt: updated for Drupal 5 changes
1 // $Id: contextlinks.js,v 1.3 2006/05/10 16:14:45 jhriggs Exp $
2
3 /**
4 * The contextlinks.js file provides a JavaScript function for opening
5 * links in a new browser window. Links with the rel attribute set to
6 * "CONTEXTLINKS_NEW_WINDOW" will be opened in a new browser. This is
7 * used instead of the target attribute to allow strict HTML4 and
8 * XHTML pages to validate.
9 *
10 * @version $Id: contextlinks.js,v 1.3 2006/05/10 16:14:45 jhriggs Exp $
11 * @copyright Copyright (c) 2004-2007 Jim Riggs. All rights reserved.
12 * @author Jim Riggs <drupal at jim and lissa dot com>
13 */
14
15 if (Drupal.jsEnabled) {
16 $(document).ready(function() { $('a[@rel=CONTEXTLINKS_NEW_WINDOW]').attr('target', '_blank'); });
17 }

  ViewVC Help
Powered by ViewVC 1.1.2