From 665aca7e1ef66c891f616866a0e75e73c4555b63 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 28 Feb 2015 17:53:08 +0200 Subject: [PATCH] Remove dropdown js as it is no longer needed --- js/10-bootstrap-dropdown.js | 147 ------------------------------------ 1 file changed, 147 deletions(-) delete mode 100644 js/10-bootstrap-dropdown.js diff --git a/js/10-bootstrap-dropdown.js b/js/10-bootstrap-dropdown.js deleted file mode 100644 index cc1c995..0000000 --- a/js/10-bootstrap-dropdown.js +++ /dev/null @@ -1,147 +0,0 @@ -/* ======================================================================== - * Bootstrap: dropdown.js v3.1.0 - * http://getbootstrap.com/javascript/#dropdowns - * ======================================================================== - * Copyright 2011-2014 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - * ======================================================================== */ - - -+function ($) { - 'use strict'; - - // DROPDOWN CLASS DEFINITION - // ========================= - - var backdrop = '.dropdown-backdrop' - var toggle = '[data-toggle=dropdown]' - var Dropdown = function (element) { - $(element).on('click.bs.dropdown', this.toggle) - } - - Dropdown.prototype.toggle = function (e) { - var $this = $(this) - - if ($this.is('.disabled, :disabled')) return - - var $parent = getParent($this) - var isActive = $parent.hasClass('open') - - clearMenus() - - if (!isActive) { - if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) { - // if mobile we use a backdrop because click events don't delegate - $('