Created
December 7, 2012 12:10
-
-
Save waako/4232898 to your computer and use it in GitHub Desktop.
Drupal: open external links in new window. otherwise use Menu Attributes module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Drupal.behaviors.externalMenu = function(context, settings) { | |
$('#menu_id').attr('target', '_blank'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment