From e2eef7908218664c71c14db08b3a42426eb90dcb Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Fri, 4 Jan 2019 16:02:25 +0100 Subject: [PATCH] Remove jquery-ui selectmenu plugin as it's not used --- .../media/css/jquery/jquery.ui.selectmenu.css | 27 - .../media/js/jquery/jquery.ui.selectmenu.js | 876 ------------------ 2 files changed, 903 deletions(-) delete mode 100644 django/media/css/jquery/jquery.ui.selectmenu.css delete mode 100644 django/media/js/jquery/jquery.ui.selectmenu.js diff --git a/django/media/css/jquery/jquery.ui.selectmenu.css b/django/media/css/jquery/jquery.ui.selectmenu.css deleted file mode 100644 index 170f9a0..0000000 --- a/django/media/css/jquery/jquery.ui.selectmenu.css +++ /dev/null @@ -1,27 +0,0 @@ -/* Selectmenu -----------------------------------*/ -.ui-selectmenu { display: block; display: inline-block; position: relative; height: 2.2em; vertical-align: middle; text-decoration: none; overflow: hidden; zoom: 1; } -.ui-selectmenu-icon { position:absolute; right:6px; margin-top:-8px; top: 50%; } -.ui-selectmenu-menu { padding:0; margin:0; position:absolute; top: 0; display: none; z-index: 1005;} /* z-index: 1005 to make selectmenu work with dialog */ -.ui-selectmenu-menu ul { padding:0; margin:0; list-style:none; position: relative; overflow: auto; overflow-y: auto ; overflow-x: hidden; -webkit-overflow-scrolling: touch;} -.ui-selectmenu-open { display: block; } -.ui-selectmenu-menu-popup { margin-top: -1px; } -.ui-selectmenu-menu li { padding:0; margin:0; display: block; border-top: 1px dotted transparent; border-bottom: 1px dotted transparent; border-right-width: 0 !important; border-left-width: 0 !important; font-weight: normal !important; } -.ui-selectmenu-menu li a,.ui-selectmenu-status { line-height: 1.4em; display: block; padding: .405em 2.1em .405em 1em; outline:none; text-decoration:none; } -.ui-selectmenu-menu li.ui-state-disabled a, .ui-state-disabled { cursor: default; } -.ui-selectmenu-menu li.ui-selectmenu-hasIcon a, -.ui-selectmenu-hasIcon .ui-selectmenu-status { padding-left: 20px; position: relative; margin-left: 5px; } -.ui-selectmenu-menu li .ui-icon, .ui-selectmenu-status .ui-icon { position: absolute; top: 1em; margin-top: -8px; left: 0; } -.ui-selectmenu-status { line-height: 1.4em; } -.ui-selectmenu-menu li span,.ui-selectmenu-status span { display:block; margin-bottom: .2em; } -.ui-selectmenu-menu li .ui-selectmenu-item-header { font-weight: bold; } -.ui-selectmenu-menu li .ui-selectmenu-item-footer { opacity: .8; } -/* for optgroups */ -.ui-selectmenu-menu .ui-selectmenu-group { font-size: 1em; } -.ui-selectmenu-menu .ui-selectmenu-group .ui-selectmenu-group-label { line-height: 1.4em; display:block; padding: .6em .5em 0; font-weight: bold; } -.ui-selectmenu-menu .ui-selectmenu-group ul { margin: 0; padding: 0; } -/* IE6 workaround (dotted transparent borders) */ -* html .ui-selectmenu-menu li { border-color: pink; filter:chroma(color=pink); width:100%; } -* html .ui-selectmenu-menu li a { position: relative } -/* IE7 workaround (opacity disabled) */ -*+html .ui-state-disabled, *+html .ui-state-disabled a { color: silver; } \ No newline at end of file diff --git a/django/media/js/jquery/jquery.ui.selectmenu.js b/django/media/js/jquery/jquery.ui.selectmenu.js deleted file mode 100644 index ae0a953..0000000 --- a/django/media/js/jquery/jquery.ui.selectmenu.js +++ /dev/null @@ -1,876 +0,0 @@ - /* - * jQuery UI selectmenu 1.3.0pre version - * - * Copyright (c) 2009-2010 filament group, http://filamentgroup.com - * Copyright (c) 2010-2012 Felix Nagel, http://www.felixnagel.com - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI - * https://github.com/fnagel/jquery-ui/wiki/Selectmenu - */ - -(function($) { - -$.widget("ui.selectmenu", { - options: { - appendTo: "body", - typeAhead: 1000, - style: 'dropdown', - positionOptions: { - my: "left top", - at: "left bottom", - offset: null - }, - width: null, - menuWidth: null, - handleWidth: 26, - maxHeight: null, - icons: null, - format: null, - escapeHtml: false, - bgImage: function() {} - }, - - _create: function() { - var self = this, o = this.options; - - // set a default id value, generate a new random one if not set by developer - var selectmenuId = (this.element.attr( 'id' ) || 'ui-selectmenu-' + Math.random().toString( 16 ).slice( 2, 10 )).replace(/(:|\.)/g,'') - - // quick array of button and menu id's - this.ids = [ selectmenuId, selectmenuId + '-button', selectmenuId + '-menu' ]; - - // define safe mouseup for future toggling - this._safemouseup = true; - this.isOpen = false; - - // create menu button wrapper - this.newelement = $( '', { - 'class': this.widgetBaseClass + ' ui-widget ui-state-default ui-corner-all', - 'id' : this.ids[ 1 ], - 'role': 'button', - 'href': '#nogo', - 'tabindex': this.element.attr( 'disabled' ) ? 1 : 0, - 'aria-haspopup': true, - 'aria-owns': this.ids[ 2 ] - }); - this.newelementWrap = $( "" ) - .append( this.newelement ) - .insertAfter( this.element ); - - // transfer tabindex - var tabindex = this.element.attr( 'tabindex' ); - if ( tabindex ) { - this.newelement.attr( 'tabindex', tabindex ); - } - - // save reference to select in data for ease in calling methods - this.newelement.data( 'selectelement', this.element ); - - // menu icon - this.selectmenuIcon = $( '' ) - .prependTo( this.newelement ); - - // append status span to button - this.newelement.prepend( '' ); - - // make associated form label trigger focus - this.element.bind({ - 'click.selectmenu': function( event ) { - self.newelement.focus(); - event.preventDefault(); - } - }); - - // click toggle for menu visibility - this.newelement - .bind('mousedown.selectmenu', function(event) { - self._toggle(event, true); - // make sure a click won't open/close instantly - if (o.style == "popup") { - self._safemouseup = false; - setTimeout(function() { self._safemouseup = true; }, 300); - } - return false; - }) - .bind('click.selectmenu', function() { - return false; - }) - .bind("keydown.selectmenu", function(event) { - var ret = false; - switch (event.keyCode) { - case $.ui.keyCode.ENTER: - ret = true; - break; - case $.ui.keyCode.SPACE: - self._toggle(event); - break; - case $.ui.keyCode.UP: - if (event.altKey) { - self.open(event); - } else { - self._moveSelection(-1); - } - break; - case $.ui.keyCode.DOWN: - if (event.altKey) { - self.open(event); - } else { - self._moveSelection(1); - } - break; - case $.ui.keyCode.LEFT: - self._moveSelection(-1); - break; - case $.ui.keyCode.RIGHT: - self._moveSelection(1); - break; - case $.ui.keyCode.TAB: - ret = true; - break; - case $.ui.keyCode.PAGE_UP: - case $.ui.keyCode.HOME: - self.index(0); - break; - case $.ui.keyCode.PAGE_DOWN: - case $.ui.keyCode.END: - self.index(self._optionLis.length); - break; - default: - ret = true; - } - return ret; - }) - .bind('keypress.selectmenu', function(event) { - if (event.which > 0) { - self._typeAhead(event.which, 'mouseup'); - } - return true; - }) - .bind('mouseover.selectmenu', function() { - if (!o.disabled) $(this).addClass('ui-state-hover'); - }) - .bind('mouseout.selectmenu', function() { - if (!o.disabled) $(this).removeClass('ui-state-hover'); - }) - .bind('focus.selectmenu', function() { - if (!o.disabled) $(this).addClass('ui-state-focus'); - }) - .bind('blur.selectmenu', function() { - if (!o.disabled) $(this).removeClass('ui-state-focus'); - }); - - // document click closes menu - $(document).bind("mousedown.selectmenu-" + this.ids[0], function(event) { - if ( self.isOpen ) { - self.close( event ); - } - }); - - // change event on original selectmenu - this.element - .bind("click.selectmenu", function() { - self._refreshValue(); - }) - // FIXME: newelement can be null under unclear circumstances in IE8 - // TODO not sure if this is still a problem (fnagel 20.03.11) - .bind("focus.selectmenu", function() { - if (self.newelement) { - self.newelement[0].focus(); - } - }); - - // set width when not set via options - if (!o.width) { - o.width = this.element.outerWidth(); - } - // set menu button width - this.newelement.width(o.width); - - // hide original selectmenu element - this.element.hide(); - - // create menu portion, append to body - this.list = $( '