From 9d46e7c482cc17f9244ef5d37e8bf4c2d0a3586a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 13 Sep 2017 09:23:54 +0200 Subject: Remove bsmSelect --- .../bsmSelect/js/jquery.bsmselect.compatibility.js | 60 ---- chimere/static/bsmSelect/js/jquery.bsmselect.js | 386 --------------------- .../bsmSelect/js/jquery.bsmselect.sortable.js | 53 --- 3 files changed, 499 deletions(-) delete mode 100644 chimere/static/bsmSelect/js/jquery.bsmselect.compatibility.js delete mode 100644 chimere/static/bsmSelect/js/jquery.bsmselect.js delete mode 100644 chimere/static/bsmSelect/js/jquery.bsmselect.sortable.js (limited to 'chimere/static/bsmSelect/js') diff --git a/chimere/static/bsmSelect/js/jquery.bsmselect.compatibility.js b/chimere/static/bsmSelect/js/jquery.bsmselect.compatibility.js deleted file mode 100644 index 683d865..0000000 --- a/chimere/static/bsmSelect/js/jquery.bsmselect.compatibility.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Better Select Multiple Compatibility Plugin - jQuery Plugin - * - * Copyright (c) 2010-2011 by Victor Berchet - http://www.github.com/vicb - * - * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. - * - * version: v1.0.1 - 2011-11-14 - */ -(function($) { - $.bsmSelect.plugins.compatibility = function() - { - if (!(this instanceof $.bsmSelect.plugins.compatibility)) { - return new $.bsmSelect.plugins.compatibility(); - } - } - - $.extend($.bsmSelect.plugins.compatibility.prototype, { - init: function(bsm) { - - var o = bsm.options; - - if (typeof o.animate != 'undefined') - { - if (o.animate === true) { - o.showEffect = $.bsmSelect.effects.verticalListAdd; - o.hideEffect = $.bsmSelect.effects.verticalListRemove; - } else if ($.isFunction(o.animate.add)) { - o.showEffect = o.animate.add; - } else if (typeof(o.animate.add) == 'string' && $.isFunction($.bsmSelect.effects[o.animate.add])) { - o.showEffect = $.bsmSelect.effects[o.animate.add]; - } else { - o.showEffect = $.bsmSelect.effects.show; - } - - if ($.isFunction(o.animate.drop)) { - o.hideEffect = o.animate.drop; - } else if (typeof(o.animate.drop) == 'string' && $.isFunction($.bsmSelect.effects[o.animate.drop])) { - o.hideEffect = $.bsmSelect.effects[o.animate.drop]; - } else { - o.hideEffect = $.bsmSelect.effects.remove; - } - } - - if (typeof o.highlight != 'undefined') - { - if (o.highlight === true) { - o.highlightEffect = $.bsmSelect.effects.highlight; - } else if ($.isFunction(o.highlight)) { - o.highlightEffect = o.highlight; - } else if (typeof(o.highlight) == 'string' && $.isFunction($.bsmSelect.effects[o.highlight])) { - o.highlightEffect = $.bsmSelect.effects[o.highlight]; - } - } - - } - - }); -})(jQuery); - diff --git a/chimere/static/bsmSelect/js/jquery.bsmselect.js b/chimere/static/bsmSelect/js/jquery.bsmselect.js deleted file mode 100644 index 7751418..0000000 --- a/chimere/static/bsmSelect/js/jquery.bsmselect.js +++ /dev/null @@ -1,386 +0,0 @@ -/* - * Better Select Multiple - jQuery Plugin - * - * based on Alternate Select Multiple (asmSelect) 1.0.4a beta (http://www.ryancramer.com/projects/asmselect/) - * - * Copyright (c) 2009 by Ryan Cramer - http://www.ryancramer.com - * Copyright (c) 2010-2013 by Victor Berchet - http://www.github.com/vicb - * - * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. - * - * bsmSelect version: v1.4.7 - 2013-12-19 - */ - -(function($) { - - function BsmSelect(target, options) - { - this.$original = $(target); // the original select multiple - this.buildingSelect = false; // is the new select being constructed right now? - this.ieClick = false; // in IE, has a click event occurred? ignore if not - this.ignoreOriginalChangeEvent = false; // originalChangeEvent bypassed when this is true - this.options = options; - this.buildDom(); - } - - BsmSelect.prototype = { - /** - * Generate an UID - */ - generateUid: function(index) { - return (this.uid = this.options.containerClass + index); - }, - - /** - * Build the DOM for bsmSelect - */ - buildDom: function() { - var self = this, o = this.options; - - if (o.addItemTarget === 'original') { - $('option', this.$original).each(function(i, o) { - if ($(o).data('bsm-order') === undefined) { $(o).data('bsm-order', i); } - }); - } - - for (var index = 0; $('#' + this.generateUid(index)).size(); index++) {} - - this.$select = $(' - optionDisabledClass: 'bsmOptionDisabled', // Class for items that are already selected / disabled - listClass: 'bsmList', // Class for the list ($list) - listItemClass: 'bsmListItem', // Class for the
  • list items - listItemLabelClass: 'bsmListItemLabel', // Class for the label text that appears in list items - removeClass: 'bsmListItemRemove', // Class given to the 'remove' link - highlightClass: 'bsmHighlight' // Class given to the highlight - }; - -})(jQuery); diff --git a/chimere/static/bsmSelect/js/jquery.bsmselect.sortable.js b/chimere/static/bsmSelect/js/jquery.bsmselect.sortable.js deleted file mode 100644 index cd79028..0000000 --- a/chimere/static/bsmSelect/js/jquery.bsmselect.sortable.js +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Better Select Multiple Sortable Plugin - * - * Copyright (c) 2010-2012 by Victor Berchet - http://www.github.com/vicb - * - * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. - * - * version: v1.4.4 - 2012-01-19 - */ -(function($) { - $.bsmSelect.plugins.sortable = function(sortConfig, options) - { - if (!(this instanceof $.bsmSelect.plugins.sortable)) { - return new $.bsmSelect.plugins.sortable(sortConfig, options); - } - this.sortConfig = sortConfig; - this.options = $.extend({}, this.defaultOpt, options || {}); - } - - $.extend($.bsmSelect.plugins.sortable.prototype, { - defaultOpt: { - listSortableClass: 'bsmListSortable' - }, - - init: function(bsm) { - var o = $.extend({}, this.options, bsm.options), - config = $.extend({}, this.sortConfig, { items: '.' + o.listItemClass }), - self = this; - bsm.$list.addClass(o.listSortableClass).sortable(config); - // Fix a bug when the 'html' element has an overflow set to either 'scroll' or 'auto' on FF. - // See issue #21 (https://github.com/vicb/bsmSelect/issues/21) - if ($.inArray($('html').css('overflow-x'), ['auto', 'scroll']) > -1 || $.inArray($('html').css('overflow-y'), ['auto', 'scroll']) > -1) { - $('.' + o.listSortableClass).addClass('bsmScrollWorkaround'); - } - bsm.$original.bind('change', function(e, info) { self.onChange.call(self, bsm, e, info); } ); - bsm.$list.bind('sortupdate', function(e, ui) { self.onSort.call(self, bsm, e, ui); } ); - }, - - onChange: function(bsm, e, info) { - if (info && info.type === 'add' && !bsm.buildingSelect) { - info.option.detach()[bsm.options.addItemTarget === 'top' ? 'prependTo' : 'appendTo'](bsm.$original); - bsm.$list.sortable('refresh'); - } - }, - - onSort: function(bsm, e, ui) { - $('.' + bsm.options.listItemClass, bsm.$list).each(function() { - $(this).data('bsm-option').data('orig-option').detach().appendTo(bsm.$original); - }); - bsm.triggerOriginalChange($(ui.item).data('bsm-option').data('orig-option'), 'sort'); - } - }); -})(jQuery); -- cgit v1.2.3