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/css/jquery.mcdropdown.min.css | 1 - 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 - 5 files changed, 12 insertions(+), 1262 deletions(-) delete mode 100644 src/main/webapp/css/jquery.mcdropdown.min.css 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') diff --git a/src/main/webapp/css/jquery.mcdropdown.min.css b/src/main/webapp/css/jquery.mcdropdown.min.css deleted file mode 100644 index 12ec51e..0000000 --- a/src/main/webapp/css/jquery.mcdropdown.min.css +++ /dev/null @@ -1 +0,0 @@ -div.mcdropdown{position:absolute;border:1px solid #8e9daa;padding:1px;display:-moz-inline-block;display:inline-block;width:408px;height:14px;padding:2px;}div.mcdropdown input,div.mcdropdown div{position:absolute;background-color:#fff;left:0;top:0;width:98%;border:0;padding:2px 0 0 3px;font:11px Arial,Helvetica,sans-serif;}div.mcdropdown a{position:absolute;right:1px;top:1px;background:transparent url(../images/mcdropdown/mcdd_select_button_sprite.gif) no-repeat top left;display:-moz-inline-block;display:inline-block;height:16px;width:15px;text-decoration:none;font-size:0;z-index:2;outline:0;}div.mcdropdown a:hover,div.mcdropdown a:focus{background-position:0 -16px;}div.mcdropdown a:active{background-position:0 -32px;outline:none;}div.mcdropdownDisabled{background-color:#e1e0e0;filter:alpha(opacity=75);-moz-opacity:.75;opacity:.75;-khtml-user-select:none;-o-user-select:none;-moz-user-select:none;-moz-user-focus:ignore;-moz-user-input:disabled;}div.mcdropdownDisabled input{cursor:default;}div.mcdropdownDisabled a:hover,div.mcdropdownDisabled a:focus{background-position:0 0;cursor:default;}ul.mcdropdown_menu{display:none;margin:0;padding:0;list-style-type:none;float:left;clear:both;z-index:10000;-khtml-user-select:none;-o-user-select:none;-moz-user-select:none;-moz-user-focus:ignore;-moz-user-input:disabled;}ul.mcdropdown_menu ul{display:none;font:11px Arial,Helvetica,sans-serif;}ul.mcdropdown_menu ul{position:absolute;list-style-type:none;margin:0;margin-left:30px;padding:0;z-index:10000;}ul.mcdropdown_menu ul li{margin:0;min-width:150px;_width:150px;}ul.mcdropdown_menu{height:auto;background-color:#e1e0e0;padding:5px 5px;font:11px Arial,Helvetica,sans-serif;}ul.mcdropdown_menu li{padding:2px 20px 2px 6px;}ul.mcdropdown_menu li.mc_root{cursor:pointer;white-space:nowrap;color:#666;border-top:1px solid #fff;padding:2px 20px 2px 6px;margin:0 10px;}ul.mcdropdown_menu>li.mc_endcol{border-bottom:1px solid #fff;}ul.mcdropdown_menu li.mc_hover{background-color:#ccc!important;}ul.mcdropdown_menu>li:hover{border-top:1px solid #999;background-color:#999!important;color:#fff;}ul.mcdropdown_menu>li:hover.mc_endcol{border-bottom:1px solid #999;}ul.mcdropdown_menu>li:hover+li:not(.mc_firstrow){border-top:1px solid #999;}ul.mcdropdown_menu li.mc_parent{padding-right:20px!important;background:url(../images/mcdropdown/mcdd_icon_normal.gif) no-repeat 100% 50%;}ul.mcdropdown_menu li:hover.mc_parent{background:#999 url(../images/mcdropdown/mcdd_icon_hover.gif) no-repeat 100% 50%!important;color:#fff!important;}ul.mcdropdown_menu ul{background:#f0f0f0;border:1px solid #d0d0d0;padding-bottom:10px;visibility:hidden;}ul.mcdropdown_menu ul li{background:#f0f0f0;padding-left:16px!important;border-top:1px solid #fff;color:#666;white-space:nowrap;}ul.mcdropdown_menu ul li.mc_firstrow{border-top:1px solid #f0f0f0;}ul.mcdropdown_menu ul li.mc_endcol{border-bottom:1px solid #fff;}ul.mcdropdown_menu ul li:hover{background-color:#d6d6d6;border-top:1px solid #dedede;color:#666;}ul.mcdropdown_menu ul li.mc_endcol:hover{border-bottom:1px solid #dedede;}ul.mcdropdown_menu ul li:hover+li:not(.mc_firstrow){border-top:1px solid #dedede;}div.mcdropdown_shadow{display:none;position:absolute;margin:3px 0 0 3px;background:#000;filter:alpha(opacity=33);}html>body div.mcdropdown_shadow{margin:5px 0 0 5px;padding:5px 0 0 5px;background:transparent url(../images/mcdropdown/shadow.png) right bottom no-repeat!important;filter:none;}ul.mcdropdown_autocomplete{display:block;position:absolute;height:auto;max-height:210px;overflow-x:hidden;overflow-y:auto;clear:both;padding:5px 10px;background-color:#e1e0e0;z-index:10000;margin:0;list-style-type:none;width:392px;font:11px Arial,Helvetica,sans-serif;}ul.mcdropdown_autocomplete ul{display:none;list-style-type:none;margin:0;padding:0;}ul.mcdropdown_autocomplete ul li{margin:0;}ul.mcdropdown_autocomplete li{display:block;font:11px Arial,Helvetica,sans-serif;cursor:pointer;white-space:nowrap;color:#666;border-top:1px solid #fff;padding:2px 26px 2px 6px;}ul.mcdropdown_autocomplete li.mc_endcol{border-bottom:1px solid #fff;}ul.mcdropdown_autocomplete li.mc_parent{padding-right:20px!important;background:url(../images/mcdropdown/mcdd_icon_normal.gif) no-repeat 100% 50%;}ul.mcdropdown_autocomplete li.mc_hover{border-top:1px solid #999;background-color:#999!important;color:#fff;}ul.mcdropdown_autocomplete li.mc_hover_parent{background:#999 url(../images/mcdropdown/mcdd_icon_hover.gif) no-repeat 100% 50%!important;color:#fff!important;} \ No newline at end of file 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