fix JS parse error when compressed

This commit is contained in:
Ted Serbinski 2007-11-23 00:32:52 +00:00
parent f3935ae423
commit 5ef33d2fa2

View File

@ -4,9 +4,9 @@ $(document).ready(function() {
// get the Drupal basepath // get the Drupal basepath
var basePath = Drupal.settings.simplemenu.basePath; var basePath = Drupal.settings.simplemenu.basePath;
// get the element to add the menu to // get the element to add the menu to
var element = Drupal.settings.simplemenu.element; var element = Drupal.settings.simplemenu.element;
var menu = '<ul id="simplemenu" class="clear-block"></ul>'; var menu = '<ul id="simplemenu" class="clear-block"></ul>';
switch (Drupal.settings.simplemenu.placement) { switch (Drupal.settings.simplemenu.placement) {
case 'prepend': case 'prepend':
$(menu).prependTo(element); $(menu).prependTo(element);
@ -17,11 +17,11 @@ $(document).ready(function() {
case 'replace': case 'replace':
$(element).html(menu); $(element).html(menu);
break; break;
} }
$('body').addClass('simplemenu-enabled') $('body').addClass('simplemenu-enabled');
// Build menu // Build menu
$('#simplemenu') $('#simplemenu')
.append(simplemenu) .append(simplemenu)
.superfish( { speed: 'fast' } ) .superfish( { speed: 'fast' } )
@ -36,10 +36,10 @@ $(document).ready(function() {
.end() .end()
.end() .end()
.find("a") .find("a")
.removeAttr('title'); .removeAttr('title');
$('#simplemenu').children('li.expanded').addClass('root'); $('#simplemenu').children('li.expanded').addClass('root');
}); });
/* /*
@ -84,11 +84,11 @@ $(document).ready(function() {
if ( !$$.is('.'+o.bcClass) ) { if ( !$$.is('.'+o.bcClass) ) {
this.sfTimer=setTimeout(function(){ this.sfTimer=setTimeout(function(){
$$.hideSuperfishUl(); $$.hideSuperfishUl();
if (!$('.'+o.hoverClass,$sf).length) { if (!$('.'+o.hoverClass,$sf).length) {
over.call($currents.hideSuperfishUl()); over.call($currents.hideSuperfishUl());
} }
},o.delay); },o.delay);
} }
}; };
$.fn.extend({ $.fn.extend({
hideSuperfishUl : function(){ hideSuperfishUl : function(){
@ -143,7 +143,7 @@ $(document).ready(function() {
/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net) /* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
* *
* $LastChangedDate: 2007-07-21 18:45:56 -0500 (Sat, 21 Jul 2007) $ * $LastChangedDate: 2007-07-21 18:45:56 -0500 (Sat, 21 Jul 2007) $