furatto 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2374b12f3786063f4e7e1bd9164e404dbe1e9e55
4
- data.tar.gz: 945e5e3079c4358508808a573bc4b2ff1322f7db
3
+ metadata.gz: a908094fd0d3633c4fbab64c7dc0e7a026c8d1fa
4
+ data.tar.gz: d71aed5a13b8218d1b95c002f08da26221e5bd15
5
5
  SHA512:
6
- metadata.gz: 7e49edda7bb09c3305863132b9c3b3b1179a9c482ddb3558ae4ba2c65c6e3a31a60ad29604a3cab1c7384076cf2e04e698dacc1a4a39992d47923d395fa00d96
7
- data.tar.gz: 8d32af22a94501843740d116b3fe007c05602f8753d90b00bdd26597fba48d85ba24d9f11ab1cb868bbc292f09824af231aa2fa379629c6b49e6850796f4086d
6
+ metadata.gz: 18c24bcc7f10d33a58d9a8bd5d5382aa66837329dae034a3d302cb65b270d65d6f0081370bcd7921708771e5e9a11726c5ff85f24d60cbd62878f4fbe0b44da9
7
+ data.tar.gz: ce0dc792208b4e0885cf9c787b836ab3c97d4e9a5be2a738a454c7d34b46e4b74c873beaf2a05f874256869570c2a798754f7b826d136979a8b1a1573c973397
@@ -1,3 +1,3 @@
1
1
  module Furatto
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
@@ -1,5 +1,11 @@
1
1
  /*!
2
- * Furatto v3.0.0 (http://icalialabs.github.io/furatto/)
2
+ * Furatto v3.0.1 (http://icalialabs.github.io/furatto/)
3
+ * Copyright 2014-2014 Icalia Labs
4
+ * Licensed under MIT (https://github.com/IcaliaLabs/furatto/blob/master/LICENSE)
5
+ */
6
+
7
+ /*!
8
+ * Furatto v3.0.1 (http://icalialabs.github.io/furatto/)
3
9
  * Copyright 2014-2014 Icalia Labs
4
10
  * Licensed under MIT (https://github.com/IcaliaLabs/furatto/blob/master/LICENSE)
5
11
  */
@@ -1552,193 +1558,20 @@ var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments)
1552
1558
 
1553
1559
  }(window.jQuery);
1554
1560
 
1555
- /* ============================================================
1556
- * bootstrap-dropdown.js v2.3.2
1557
- * http://twitter.github.com/bootstrap/javascript.html#dropdowns
1558
- * ============================================================
1559
- * Copyright 2012 Twitter, Inc.
1560
- *
1561
- * Licensed under the Apache License, Version 2.0 (the "License");
1562
- * you may not use this file except in compliance with the License.
1563
- * You may obtain a copy of the License at
1564
- *
1565
- * http://www.apache.org/licenses/LICENSE-2.0
1566
- *
1567
- * Unless required by applicable law or agreed to in writing, software
1568
- * distributed under the License is distributed on an "AS IS" BASIS,
1569
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1570
- * See the License for the specific language governing permissions and
1571
- * limitations under the License.
1572
- * ============================================================ */
1573
-
1574
-
1575
- !function ($) {
1576
-
1577
- "use strict"; // jshint ;_;
1578
-
1579
-
1580
- /* DROPDOWN CLASS DEFINITION
1581
- * ========================= */
1582
-
1583
- var toggle = '[data-toggle=dropdown]'
1584
- , Dropdown = function (element) {
1585
- var $el = $(element).on('click.dropdown.data-api', this.toggle)
1586
- $('html').on('click.dropdown.data-api', function () {
1587
- $el.parent().removeClass('open')
1588
- })
1589
- }
1590
-
1591
- Dropdown.prototype = {
1592
-
1593
- constructor: Dropdown
1594
-
1595
- , toggle: function (e) {
1596
- var $this = $(this)
1597
- , $parent
1598
- , isActive
1599
-
1600
- if ($this.is('.disabled, :disabled')) return
1601
-
1602
- $parent = getParent($this)
1603
-
1604
- isActive = $parent.hasClass('open')
1605
-
1606
- clearMenus()
1607
-
1608
- if (!isActive) {
1609
- if ('ontouchstart' in document.documentElement) {
1610
- // if mobile we we use a backdrop because click events don't delegate
1611
- $('<div class="dropdown-backdrop"/>').insertBefore($(this)).on('click', clearMenus)
1612
- }
1613
- $parent.toggleClass('open')
1614
- }
1615
-
1616
- $this.focus()
1617
-
1618
- return false
1619
- }
1620
-
1621
- , keydown: function (e) {
1622
- var $this
1623
- , $items
1624
- , $active
1625
- , $parent
1626
- , isActive
1627
- , index
1628
-
1629
- if (!/(38|40|27)/.test(e.keyCode)) return
1630
-
1631
- $this = $(this)
1632
-
1633
- e.preventDefault()
1634
- e.stopPropagation()
1635
-
1636
- if ($this.is('.disabled, :disabled')) return
1637
-
1638
- $parent = getParent($this)
1639
-
1640
- isActive = $parent.hasClass('open')
1641
-
1642
- if (!isActive || (isActive && e.keyCode == 27)) {
1643
- if (e.which == 27) $parent.find(toggle).focus()
1644
- return $this.click()
1645
- }
1646
-
1647
- $items = $('[role=menu] li:not(.divider):visible a', $parent)
1648
-
1649
- if (!$items.length) return
1650
-
1651
- index = $items.index($items.filter(':focus'))
1652
-
1653
- if (e.keyCode == 38 && index > 0) index-- // up
1654
- if (e.keyCode == 40 && index < $items.length - 1) index++ // down
1655
- if (!~index) index = 0
1656
-
1657
- $items
1658
- .eq(index)
1659
- .focus()
1660
- }
1661
-
1662
- }
1663
-
1664
- function clearMenus() {
1665
- $('.dropdown-backdrop').remove()
1666
- $(toggle).each(function () {
1667
- getParent($(this)).removeClass('open')
1668
- })
1669
- }
1670
-
1671
- function getParent($this) {
1672
- var selector = $this.attr('data-target')
1673
- , $parent
1674
-
1675
- if (!selector) {
1676
- selector = $this.attr('href')
1677
- selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
1678
- }
1679
-
1680
- $parent = selector && $(selector)
1681
-
1682
- if (!$parent || !$parent.length) $parent = $this.parent()
1683
-
1684
- return $parent
1685
- }
1686
-
1687
-
1688
- /* DROPDOWN PLUGIN DEFINITION
1689
- * ========================== */
1690
-
1691
- var old = $.fn.dropdown
1692
-
1693
- $.fn.dropdown = function (option) {
1694
- return this.each(function () {
1695
- var $this = $(this)
1696
- , data = $this.data('dropdown')
1697
- if (!data) $this.data('dropdown', (data = new Dropdown(this)))
1698
- if (typeof option == 'string') data[option].call($this)
1699
- })
1700
- }
1701
-
1702
- $.fn.dropdown.Constructor = Dropdown
1703
-
1704
-
1705
- /* DROPDOWN NO CONFLICT
1706
- * ==================== */
1707
-
1708
- $.fn.dropdown.noConflict = function () {
1709
- $.fn.dropdown = old
1710
- return this
1711
- }
1712
-
1713
-
1714
- /* APPLY TO STANDARD DROPDOWN ELEMENTS
1715
- * =================================== */
1716
-
1717
- $(document)
1718
- .on('click.dropdown.data-api', clearMenus)
1719
- .on('click.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
1720
- .on('click.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
1721
- .on('keydown.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
1722
-
1723
- $(document).ready(function() {
1724
- $('.dropdown-toggle').dropdown();
1725
-
1726
- $('.dropdown input, .dropdown label').click(function(e){
1727
- e.stopPropagation();
1728
- });
1729
- })
1730
-
1561
+ jQuery(function() {
1731
1562
  $('.with-dropdown').on('touchstart click', function(e) {
1732
1563
  e.preventDefault();
1733
1564
  return $(this).toggleClass('opened');
1734
1565
  });
1735
- return $('.with-dropdown').hover(function() {
1566
+ return $('.with-dropdown').mouseenter(function(e) {
1567
+ $('.with-dropdown .dropdown li a').click(function(e) {
1568
+ return e.stopPropagation();
1569
+ });
1736
1570
  return $(this).addClass('opened');
1737
- }, function() {
1571
+ }).mouseleave(function() {
1738
1572
  return $(this).removeClass('opened');
1739
1573
  });
1740
-
1741
- }(window.jQuery);
1574
+ });
1742
1575
 
1743
1576
  /*!
1744
1577
  * classie - class helper functions
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: furatto
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abraham Kuri Vargas