From: Marius Gavrilescu Date: Sat, 28 Feb 2015 15:53:08 +0000 (+0200) Subject: Remove dropdown js as it is no longer needed X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=665aca7e1ef66c891f616866a0e75e73c4555b63;p=plack-app-gruntmaster.git Remove dropdown js as it is no longer needed --- 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 - $('