#296822: Add admin setting to disable menu on certain paths

This commit is contained in:
Roger López
2008-10-17 01:08:12 +00:00
parent a42aa98302
commit 53a2bce0bd
2 changed files with 59 additions and 1 deletions

View File

@@ -1,6 +1,11 @@
// $Id$
$(document).ready(function() {
// If detect pop-ups setting is enabled and we are in a pop-up window
if (Drupal.settings.simplemenu.detectPopup && window.opener) {
return;
}
// get the element to add the menu to
var element = Drupal.settings.simplemenu.element;
var menu = $(simplemenu).attr("id", "simplemenu");