From 031f1648f2a1207d0b88ce3e536b9b5163c7024c Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 27 Jul 2011 23:07:26 +0200 Subject: new ui and clean out mcdropdown --- src/main/webapp/js/jquery-ui.js | 12 + src/main/webapp/js/jquery.bgiframe.js | 100 --- src/main/webapp/js/jquery.mcdropdown.js | 1139 --------------------------- src/main/webapp/js/jquery.mcdropdown.min.js | 22 - 4 files changed, 12 insertions(+), 1261 deletions(-) delete mode 100644 src/main/webapp/js/jquery.bgiframe.js delete mode 100644 src/main/webapp/js/jquery.mcdropdown.js delete mode 100644 src/main/webapp/js/jquery.mcdropdown.min.js (limited to 'src/main/webapp/js') diff --git a/src/main/webapp/js/jquery-ui.js b/src/main/webapp/js/jquery-ui.js index 6470041..5754d6a 100644 --- a/src/main/webapp/js/jquery-ui.js +++ b/src/main/webapp/js/jquery-ui.js @@ -10512,6 +10512,18 @@ $.widget( "ui.menu", { if ( target.length ) { self.blur( event ); } + }) + .bind( "focus.menu", function( event ) { + if ( self.options.disabled ) { + return; + } + self.focus( event, $( event.target ).children( ".ui-menu-item:first" ) ); + }) + .bind( "blur.menu", function( event ) { + if ( self.options.disabled ) { + return; + } + self.collapseAll( event ); }); this.refresh(); diff --git a/src/main/webapp/js/jquery.bgiframe.js b/src/main/webapp/js/jquery.bgiframe.js deleted file mode 100644 index 3a01f6e..0000000 --- a/src/main/webapp/js/jquery.bgiframe.js +++ /dev/null @@ -1,100 +0,0 @@ -/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net) - * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) - * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. - * - * $LastChangedDate: 2007-07-21 18:44:59 -0500 (Sat, 21 Jul 2007) $ - * $Rev: 2446 $ - * - * Version 2.1.1 - */ - -(function($){ - -/** - * The bgiframe is chainable and applies the iframe hack to get - * around zIndex issues in IE6. It will only apply itself in IE6 - * and adds a class to the iframe called 'bgiframe'. The iframe - * is appeneded as the first child of the matched element(s) - * with a tabIndex and zIndex of -1. - * - * By default the plugin will take borders, sized with pixel units, - * into account. If a different unit is used for the border's width, - * then you will need to use the top and left settings as explained below. - * - * NOTICE: This plugin has been reported to cause perfromance problems - * when used on elements that change properties (like width, height and - * opacity) a lot in IE6. Most of these problems have been caused by - * the expressions used to calculate the elements width, height and - * borders. Some have reported it is due to the opacity filter. All - * these settings can be changed if needed as explained below. - * - * @example $('div').bgiframe(); - * @before

Paragraph

- * @result