fuelux-rails 0.0.3 → 2.1.01

Sign up to get free protection for your applications and to get access to all the features.
data/lib/fuelux-rails.rb CHANGED
@@ -2,5 +2,4 @@ module FueluxRails
2
2
  require 'fuelux-rails/engine' if defined?(Rails)
3
3
  end
4
4
 
5
- require 'less-rails'
6
5
  require 'fuelux-rails/fuelux' if defined?(Rails)
@@ -1,3 +1,3 @@
1
1
  module FueluxRails
2
- VERSION = "0.0.3"
2
+ VERSION = "2.1.01"
3
3
  end
@@ -5,6 +5,7 @@
5
5
  * Copyright (c) 2012 ExactTarget
6
6
  * Licensed under the MIT license.
7
7
  */
8
+
8
9
  !function ($) {
9
10
 
10
11
  // DATAGRID CONSTRUCTOR AND PROTOTYPE
@@ -211,4 +212,4 @@
211
212
 
212
213
  $.fn.datagrid.Constructor = Datagrid;
213
214
 
214
- }(window.jQuery);
215
+ }(window.jQuery);
@@ -344,7 +344,7 @@ define("almond", function(){});
344
344
  (function (root) { var amdExports; define('bootstrap/bootstrap-transition',['jquery'], function () { (function () {
345
345
 
346
346
  /* ===================================================
347
- * bootstrap-transition.js v2.1.1
347
+ * bootstrap-transition.js v2.2.1
348
348
  * http://twitter.github.com/bootstrap/javascript.html#transitions
349
349
  * ===================================================
350
350
  * Copyright 2012 Twitter, Inc.
@@ -365,13 +365,13 @@ define("almond", function(){});
365
365
 
366
366
  !function ($) {
367
367
 
368
- $(function () {
368
+ // jshint ;_;
369
369
 
370
- // jshint ;_;
371
370
 
371
+ /* CSS TRANSITION SUPPORT (http://www.modernizr.com/)
372
+ * ======================================================= */
372
373
 
373
- /* CSS TRANSITION SUPPORT (http://www.modernizr.com/)
374
- * ======================================================= */
374
+ $(function () {
375
375
 
376
376
  $.support.transition = (function () {
377
377
 
@@ -413,7 +413,7 @@ define("almond", function(){});
413
413
  (function (root) { var amdExports; define('bootstrap/bootstrap-affix',['bootstrap/bootstrap-transition'], function () { (function () {
414
414
 
415
415
  /* ==========================================================
416
- * bootstrap-affix.js v2.1.1
416
+ * bootstrap-affix.js v2.2.1
417
417
  * http://twitter.github.com/bootstrap/javascript.html#affix
418
418
  * ==========================================================
419
419
  * Copyright 2012 Twitter, Inc.
@@ -442,7 +442,9 @@ define("almond", function(){});
442
442
 
443
443
  var Affix = function (element, options) {
444
444
  this.options = $.extend({}, $.fn.affix.defaults, options)
445
- this.$window = $(window).on('scroll.affix.data-api', $.proxy(this.checkPosition, this))
445
+ this.$window = $(window)
446
+ .on('scroll.affix.data-api', $.proxy(this.checkPosition, this))
447
+ .on('click.affix.data-api', $.proxy(function () { setTimeout($.proxy(this.checkPosition, this), 1) }, this))
446
448
  this.$element = $(element)
447
449
  this.checkPosition()
448
450
  }
@@ -526,7 +528,7 @@ define("almond", function(){});
526
528
  (function (root) { var amdExports; define('bootstrap/bootstrap-alert',['bootstrap/bootstrap-transition'], function () { (function () {
527
529
 
528
530
  /* ==========================================================
529
- * bootstrap-alert.js v2.1.1
531
+ * bootstrap-alert.js v2.2.1
530
532
  * http://twitter.github.com/bootstrap/javascript.html#alerts
531
533
  * ==========================================================
532
534
  * Copyright 2012 Twitter, Inc.
@@ -610,9 +612,7 @@ define("almond", function(){});
610
612
  /* ALERT DATA-API
611
613
  * ============== */
612
614
 
613
- $(function () {
614
- $('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
615
- })
615
+ $(document).on('click.alert.data-api', dismiss, Alert.prototype.close)
616
616
 
617
617
  }(window.jQuery);
618
618
 
@@ -625,7 +625,7 @@ define("almond", function(){});
625
625
  (function (root) { var amdExports; define('bootstrap/bootstrap-button',['bootstrap/bootstrap-transition'], function () { (function () {
626
626
 
627
627
  /* ============================================================
628
- * bootstrap-button.js v2.1.1
628
+ * bootstrap-button.js v2.2.1
629
629
  * http://twitter.github.com/bootstrap/javascript.html#buttons
630
630
  * ============================================================
631
631
  * Copyright 2012 Twitter, Inc.
@@ -711,12 +711,10 @@ define("almond", function(){});
711
711
  /* BUTTON DATA-API
712
712
  * =============== */
713
713
 
714
- $(function () {
715
- $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
716
- var $btn = $(e.target)
717
- if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
718
- $btn.button('toggle')
719
- })
714
+ $(document).on('click.button.data-api', '[data-toggle^=button]', function (e) {
715
+ var $btn = $(e.target)
716
+ if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
717
+ $btn.button('toggle')
720
718
  })
721
719
 
722
720
  }(window.jQuery);
@@ -730,7 +728,7 @@ define("almond", function(){});
730
728
  (function (root) { var amdExports; define('bootstrap/bootstrap-carousel',['bootstrap/bootstrap-transition'], function () { (function () {
731
729
 
732
730
  /* ==========================================================
733
- * bootstrap-carousel.js v2.1.1
731
+ * bootstrap-carousel.js v2.2.1
734
732
  * http://twitter.github.com/bootstrap/javascript.html#carousel
735
733
  * ==========================================================
736
734
  * Copyright 2012 Twitter, Inc.
@@ -825,9 +823,7 @@ define("almond", function(){});
825
823
  , direction = type == 'next' ? 'left' : 'right'
826
824
  , fallback = type == 'next' ? 'first' : 'last'
827
825
  , that = this
828
- , e = $.Event('slide', {
829
- relatedTarget: $next[0]
830
- })
826
+ , e
831
827
 
832
828
  this.sliding = true
833
829
 
@@ -835,6 +831,10 @@ define("almond", function(){});
835
831
 
836
832
  $next = $next.length ? $next : this.$element.find('.item')[fallback]()
837
833
 
834
+ e = $.Event('slide', {
835
+ relatedTarget: $next[0]
836
+ })
837
+
838
838
  if ($next.hasClass('active')) return
839
839
 
840
840
  if ($.support.transition && this.$element.hasClass('slide')) {
@@ -894,14 +894,12 @@ define("almond", function(){});
894
894
  /* CAROUSEL DATA-API
895
895
  * ================= */
896
896
 
897
- $(function () {
898
- $('body').on('click.carousel.data-api', '[data-slide]', function ( e ) {
899
- var $this = $(this), href
900
- , $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
901
- , options = !$target.data('modal') && $.extend({}, $target.data(), $this.data())
902
- $target.carousel(options)
903
- e.preventDefault()
904
- })
897
+ $(document).on('click.carousel.data-api', '[data-slide]', function (e) {
898
+ var $this = $(this), href
899
+ , $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
900
+ , options = $.extend({}, $target.data(), $this.data())
901
+ $target.carousel(options)
902
+ e.preventDefault()
905
903
  })
906
904
 
907
905
  }(window.jQuery);
@@ -915,7 +913,7 @@ define("almond", function(){});
915
913
  (function (root) { var amdExports; define('bootstrap/bootstrap-collapse',['bootstrap/bootstrap-transition'], function () { (function () {
916
914
 
917
915
  /* =============================================================
918
- * bootstrap-collapse.js v2.1.1
916
+ * bootstrap-collapse.js v2.2.1
919
917
  * http://twitter.github.com/bootstrap/javascript.html#collapse
920
918
  * =============================================================
921
919
  * Copyright 2012 Twitter, Inc.
@@ -1059,16 +1057,14 @@ define("almond", function(){});
1059
1057
  /* COLLAPSIBLE DATA-API
1060
1058
  * ==================== */
1061
1059
 
1062
- $(function () {
1063
- $('body').on('click.collapse.data-api', '[data-toggle=collapse]', function (e) {
1064
- var $this = $(this), href
1065
- , target = $this.attr('data-target')
1066
- || e.preventDefault()
1067
- || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
1068
- , option = $(target).data('collapse') ? 'toggle' : $this.data()
1069
- $this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
1070
- $(target).collapse(option)
1071
- })
1060
+ $(document).on('click.collapse.data-api', '[data-toggle=collapse]', function (e) {
1061
+ var $this = $(this), href
1062
+ , target = $this.attr('data-target')
1063
+ || e.preventDefault()
1064
+ || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
1065
+ , option = $(target).data('collapse') ? 'toggle' : $this.data()
1066
+ $this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
1067
+ $(target).collapse(option)
1072
1068
  })
1073
1069
 
1074
1070
  }(window.jQuery);
@@ -1082,7 +1078,7 @@ define("almond", function(){});
1082
1078
  (function (root) { var amdExports; define('bootstrap/bootstrap-dropdown',['bootstrap/bootstrap-transition'], function () { (function () {
1083
1079
 
1084
1080
  /* ============================================================
1085
- * bootstrap-dropdown.js v2.1.1
1081
+ * bootstrap-dropdown.js v2.2.1
1086
1082
  * http://twitter.github.com/bootstrap/javascript.html#dropdowns
1087
1083
  * ============================================================
1088
1084
  * Copyright 2012 Twitter, Inc.
@@ -1183,8 +1179,9 @@ define("almond", function(){});
1183
1179
  }
1184
1180
 
1185
1181
  function clearMenus() {
1186
- getParent($(toggle))
1187
- .removeClass('open')
1182
+ $(toggle).each(function () {
1183
+ getParent($(this)).removeClass('open')
1184
+ })
1188
1185
  }
1189
1186
 
1190
1187
  function getParent($this) {
@@ -1221,14 +1218,11 @@ define("almond", function(){});
1221
1218
  /* APPLY TO STANDARD DROPDOWN ELEMENTS
1222
1219
  * =================================== */
1223
1220
 
1224
- $(function () {
1225
- $('html')
1226
- .on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus)
1227
- $('body')
1228
- .on('click.dropdown touchstart.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
1229
- .on('click.dropdown.data-api touchstart.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
1230
- .on('keydown.dropdown.data-api touchstart.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
1231
- })
1221
+ $(document)
1222
+ .on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus)
1223
+ .on('click.dropdown touchstart.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
1224
+ .on('click.dropdown.data-api touchstart.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
1225
+ .on('keydown.dropdown.data-api touchstart.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
1232
1226
 
1233
1227
  }(window.jQuery);
1234
1228
 
@@ -1241,7 +1235,7 @@ define("almond", function(){});
1241
1235
  (function (root) { var amdExports; define('bootstrap/bootstrap-modal',['bootstrap/bootstrap-transition'], function () { (function () {
1242
1236
 
1243
1237
  /* =========================================================
1244
- * bootstrap-modal.js v2.1.1
1238
+ * bootstrap-modal.js v2.2.1
1245
1239
  * http://twitter.github.com/bootstrap/javascript.html#modals
1246
1240
  * =========================================================
1247
1241
  * Copyright 2012 Twitter, Inc.
@@ -1291,8 +1285,6 @@ define("almond", function(){});
1291
1285
 
1292
1286
  if (this.isShown || e.isDefaultPrevented()) return
1293
1287
 
1294
- $('body').addClass('modal-open')
1295
-
1296
1288
  this.isShown = true
1297
1289
 
1298
1290
  this.escape()
@@ -1314,13 +1306,12 @@ define("almond", function(){});
1314
1306
  that.$element
1315
1307
  .addClass('in')
1316
1308
  .attr('aria-hidden', false)
1317
- .focus()
1318
1309
 
1319
1310
  that.enforceFocus()
1320
1311
 
1321
1312
  transition ?
1322
- that.$element.one($.support.transition.end, function () { that.$element.trigger('shown') }) :
1323
- that.$element.trigger('shown')
1313
+ that.$element.one($.support.transition.end, function () { that.$element.focus().trigger('shown') }) :
1314
+ that.$element.focus().trigger('shown')
1324
1315
 
1325
1316
  })
1326
1317
  }
@@ -1338,8 +1329,6 @@ define("almond", function(){});
1338
1329
 
1339
1330
  this.isShown = false
1340
1331
 
1341
- $('body').removeClass('modal-open')
1342
-
1343
1332
  this.escape()
1344
1333
 
1345
1334
  $(document).off('focusin.modal')
@@ -1409,9 +1398,11 @@ define("almond", function(){});
1409
1398
  this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
1410
1399
  .appendTo(document.body)
1411
1400
 
1412
- if (this.options.backdrop != 'static') {
1413
- this.$backdrop.click($.proxy(this.hide, this))
1414
- }
1401
+ this.$backdrop.click(
1402
+ this.options.backdrop == 'static' ?
1403
+ $.proxy(this.$element[0].focus, this.$element[0])
1404
+ : $.proxy(this.hide, this)
1405
+ )
1415
1406
 
1416
1407
  if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
1417
1408
 
@@ -1461,26 +1452,25 @@ define("almond", function(){});
1461
1452
  /* MODAL DATA-API
1462
1453
  * ============== */
1463
1454
 
1464
- $(function () {
1465
- $('body').on('click.modal.data-api', '[data-toggle="modal"]', function ( e ) {
1466
- var $this = $(this)
1467
- , href = $this.attr('href')
1468
- , $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) //strip for ie7
1469
- , option = $target.data('modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
1455
+ $(document).on('click.modal.data-api', '[data-toggle="modal"]', function (e) {
1456
+ var $this = $(this)
1457
+ , href = $this.attr('href')
1458
+ , $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) //strip for ie7
1459
+ , option = $target.data('modal') ? 'toggle' : $.extend({ remote:!/#/.test(href) && href }, $target.data(), $this.data())
1470
1460
 
1471
- e.preventDefault()
1461
+ e.preventDefault()
1472
1462
 
1473
- $target
1474
- .modal(option)
1475
- .one('hide', function () {
1476
- $this.focus()
1477
- })
1478
- })
1463
+ $target
1464
+ .modal(option)
1465
+ .one('hide', function () {
1466
+ $this.focus()
1467
+ })
1479
1468
  })
1480
1469
 
1481
1470
  }(window.jQuery);
1482
1471
 
1483
1472
 
1473
+
1484
1474
  }.call(root));
1485
1475
  return amdExports;
1486
1476
  }); }(this));
@@ -1489,7 +1479,7 @@ define("almond", function(){});
1489
1479
  (function (root) { var amdExports; define('bootstrap/bootstrap-tooltip',['bootstrap/bootstrap-transition'], function () { (function () {
1490
1480
 
1491
1481
  /* ===========================================================
1492
- * bootstrap-tooltip.js v2.1.1
1482
+ * bootstrap-tooltip.js v2.2.1
1493
1483
  * http://twitter.github.com/bootstrap/javascript.html#tooltips
1494
1484
  * Inspired by the original jQuery.tipsy by Jason Frame
1495
1485
  * ===========================================================
@@ -1609,9 +1599,9 @@ define("almond", function(){});
1609
1599
  inside = /in/.test(placement)
1610
1600
 
1611
1601
  $tip
1612
- .remove()
1602
+ .detach()
1613
1603
  .css({ top: 0, left: 0, display: 'block' })
1614
- .appendTo(inside ? this.$element : document.body)
1604
+ .insertAfter(this.$element)
1615
1605
 
1616
1606
  pos = this.getPosition(inside)
1617
1607
 
@@ -1634,7 +1624,7 @@ define("almond", function(){});
1634
1624
  }
1635
1625
 
1636
1626
  $tip
1637
- .css(tp)
1627
+ .offset(tp)
1638
1628
  .addClass(placement)
1639
1629
  .addClass('in')
1640
1630
  }
@@ -1656,18 +1646,18 @@ define("almond", function(){});
1656
1646
 
1657
1647
  function removeWithAnimation() {
1658
1648
  var timeout = setTimeout(function () {
1659
- $tip.off($.support.transition.end).remove()
1649
+ $tip.off($.support.transition.end).detach()
1660
1650
  }, 500)
1661
1651
 
1662
1652
  $tip.one($.support.transition.end, function () {
1663
1653
  clearTimeout(timeout)
1664
- $tip.remove()
1654
+ $tip.detach()
1665
1655
  })
1666
1656
  }
1667
1657
 
1668
1658
  $.support.transition && this.$tip.hasClass('fade') ?
1669
1659
  removeWithAnimation() :
1670
- $tip.remove()
1660
+ $tip.detach()
1671
1661
 
1672
1662
  return this
1673
1663
  }
@@ -1725,8 +1715,9 @@ define("almond", function(){});
1725
1715
  this.enabled = !this.enabled
1726
1716
  }
1727
1717
 
1728
- , toggle: function () {
1729
- this[this.tip().hasClass('in') ? 'hide' : 'show']()
1718
+ , toggle: function (e) {
1719
+ var self = $(e.currentTarget)[this.type](this._options).data(this.type)
1720
+ self[self.tip().hasClass('in') ? 'hide' : 'show']()
1730
1721
  }
1731
1722
 
1732
1723
  , destroy: function () {
@@ -1759,13 +1750,12 @@ define("almond", function(){});
1759
1750
  , trigger: 'hover'
1760
1751
  , title: ''
1761
1752
  , delay: 0
1762
- , html: true
1753
+ , html: false
1763
1754
  }
1764
1755
 
1765
1756
  }(window.jQuery);
1766
1757
 
1767
1758
 
1768
-
1769
1759
  }.call(root));
1770
1760
  return amdExports;
1771
1761
  }); }(this));
@@ -1774,7 +1764,7 @@ define("almond", function(){});
1774
1764
  (function (root) { var amdExports; define('bootstrap/bootstrap-popover',['bootstrap/bootstrap-transition','bootstrap/bootstrap-tooltip'], function () { (function () {
1775
1765
 
1776
1766
  /* ===========================================================
1777
- * bootstrap-popover.js v2.1.1
1767
+ * bootstrap-popover.js v2.2.1
1778
1768
  * http://twitter.github.com/bootstrap/javascript.html#popovers
1779
1769
  * ===========================================================
1780
1770
  * Copyright 2012 Twitter, Inc.
@@ -1886,7 +1876,7 @@ define("almond", function(){});
1886
1876
  (function (root) { var amdExports; define('bootstrap/bootstrap-scrollspy',['bootstrap/bootstrap-transition'], function () { (function () {
1887
1877
 
1888
1878
  /* =============================================================
1889
- * bootstrap-scrollspy.js v2.1.1
1879
+ * bootstrap-scrollspy.js v2.2.1
1890
1880
  * http://twitter.github.com/bootstrap/javascript.html#scrollspy
1891
1881
  * =============================================================
1892
1882
  * Copyright 2012 Twitter, Inc.
@@ -2046,7 +2036,7 @@ define("almond", function(){});
2046
2036
  (function (root) { var amdExports; define('bootstrap/bootstrap-tab',['bootstrap/bootstrap-transition'], function () { (function () {
2047
2037
 
2048
2038
  /* ========================================================
2049
- * bootstrap-tab.js v2.1.1
2039
+ * bootstrap-tab.js v2.2.1
2050
2040
  * http://twitter.github.com/bootstrap/javascript.html#tabs
2051
2041
  * ========================================================
2052
2042
  * Copyright 2012 Twitter, Inc.
@@ -2096,7 +2086,7 @@ define("almond", function(){});
2096
2086
 
2097
2087
  if ( $this.parent('li').hasClass('active') ) return
2098
2088
 
2099
- previous = $ul.find('.active a').last()[0]
2089
+ previous = $ul.find('.active:last a')[0]
2100
2090
 
2101
2091
  e = $.Event('show', {
2102
2092
  relatedTarget: previous
@@ -2172,11 +2162,9 @@ define("almond", function(){});
2172
2162
  /* TAB DATA-API
2173
2163
  * ============ */
2174
2164
 
2175
- $(function () {
2176
- $('body').on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
2177
- e.preventDefault()
2178
- $(this).tab('show')
2179
- })
2165
+ $(document).on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
2166
+ e.preventDefault()
2167
+ $(this).tab('show')
2180
2168
  })
2181
2169
 
2182
2170
  }(window.jQuery);
@@ -2190,7 +2178,7 @@ define("almond", function(){});
2190
2178
  (function (root) { var amdExports; define('bootstrap/bootstrap-typeahead',['bootstrap/bootstrap-transition'], function () { (function () {
2191
2179
 
2192
2180
  /* =============================================================
2193
- * bootstrap-typeahead.js v2.1.1
2181
+ * bootstrap-typeahead.js v2.2.1
2194
2182
  * http://twitter.github.com/bootstrap/javascript.html#typeahead
2195
2183
  * =============================================================
2196
2184
  * Copyright 2012 Twitter, Inc.
@@ -2365,7 +2353,7 @@ define("almond", function(){});
2365
2353
  .on('keypress', $.proxy(this.keypress, this))
2366
2354
  .on('keyup', $.proxy(this.keyup, this))
2367
2355
 
2368
- if ($.browser.chrome || $.browser.webkit || $.browser.msie) {
2356
+ if (this.eventSupported('keydown')) {
2369
2357
  this.$element.on('keydown', $.proxy(this.keydown, this))
2370
2358
  }
2371
2359
 
@@ -2374,6 +2362,15 @@ define("almond", function(){});
2374
2362
  .on('mouseenter', 'li', $.proxy(this.mouseenter, this))
2375
2363
  }
2376
2364
 
2365
+ , eventSupported: function(eventName) {
2366
+ var isSupported = eventName in this.$element
2367
+ if (!isSupported) {
2368
+ this.$element.setAttribute(eventName, 'return;')
2369
+ isSupported = typeof this.$element[eventName] === 'function'
2370
+ }
2371
+ return isSupported
2372
+ }
2373
+
2377
2374
  , move: function (e) {
2378
2375
  if (!this.shown) return
2379
2376
 
@@ -2412,6 +2409,9 @@ define("almond", function(){});
2412
2409
  switch(e.keyCode) {
2413
2410
  case 40: // down arrow
2414
2411
  case 38: // up arrow
2412
+ case 16: // shift
2413
+ case 17: // ctrl
2414
+ case 18: // alt
2415
2415
  break
2416
2416
 
2417
2417
  case 9: // tab
@@ -2479,13 +2479,11 @@ define("almond", function(){});
2479
2479
  /* TYPEAHEAD DATA-API
2480
2480
  * ================== */
2481
2481
 
2482
- $(function () {
2483
- $('body').on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) {
2484
- var $this = $(this)
2485
- if ($this.data('typeahead')) return
2486
- e.preventDefault()
2487
- $this.typeahead($this.data())
2488
- })
2482
+ $(document).on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) {
2483
+ var $this = $(this)
2484
+ if ($this.data('typeahead')) return
2485
+ e.preventDefault()
2486
+ $this.typeahead($this.data())
2489
2487
  })
2490
2488
 
2491
2489
  }(window.jQuery);
@@ -2911,6 +2909,7 @@ define('fuelux/search',['require','jquery'],function(require) {
2911
2909
 
2912
2910
  buttonclicked: function (e) {
2913
2911
  e.preventDefault();
2912
+ if ($(e.currentTarget).is('.disabled, :disabled')) return;
2914
2913
  this.action();
2915
2914
  },
2916
2915
 
@@ -3081,7 +3080,7 @@ define('fuelux/spinner',['require','jquery'],function(require) {
3081
3080
  },
3082
3081
 
3083
3082
  value: function (value) {
3084
- if (value) {
3083
+ if (typeof value !== 'undefined') {
3085
3084
  this.options.value = value;
3086
3085
  this.$input.val(value);
3087
3086
  return this;
@@ -8,6 +8,7 @@
8
8
 
9
9
  !function ($) {
10
10
 
11
+
11
12
  // PILLBOX CONSTRUCTOR AND PROTOTYPE
12
13
 
13
14
  var Pillbox = function (element, options) {
@@ -50,6 +50,7 @@
50
50
 
51
51
  buttonclicked: function (e) {
52
52
  e.preventDefault();
53
+ if ($(e.currentTarget).is('.disabled, :disabled')) return;
53
54
  this.action();
54
55
  },
55
56
 
@@ -8,6 +8,8 @@
8
8
 
9
9
  !function ($) {
10
10
 
11
+ var $ = require('jquery');
12
+
11
13
 
12
14
  // SPINNER CONSTRUCTOR AND PROTOTYPE
13
15
 
@@ -117,7 +119,7 @@
117
119
  },
118
120
 
119
121
  value: function (value) {
120
- if (value) {
122
+ if (typeof value !== 'undefined') {
121
123
  this.options.value = value;
122
124
  this.$input.val(value);
123
125
  return this;
@@ -180,4 +182,5 @@
180
182
  });
181
183
  });
182
184
 
183
- }(window.jQuery);
185
+ }(window.jQuery);
186
+
File without changes
File without changes
File without changes
@@ -12,6 +12,10 @@
12
12
  padding-top: 0;
13
13
  padding-right: 9px;
14
14
  padding-left: 9px;
15
+
16
+ &.disabled {
17
+ cursor: not-allowed;
18
+ }
15
19
  }
16
20
 
17
21
  .spinner-buttons {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuelux-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 2.1.01
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,56 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-29 00:00:00.000000000 Z
12
+ date: 2012-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: less-rails
15
+ name: railties
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 2.2.3
21
+ version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ~>
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '3.1'
30
+ - !ruby/object:Gem::Dependency
31
+ name: actionpack
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '3.1'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '3.1'
46
+ - !ruby/object:Gem::Dependency
47
+ name: execjs
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
28
60
  - !ruby/object:Gem::Version
29
- version: 2.2.3
61
+ version: '0'
30
62
  - !ruby/object:Gem::Dependency
31
63
  name: twitter-bootstrap-rails
32
64
  requirement: !ruby/object:Gem::Requirement
@@ -119,7 +151,11 @@ files:
119
151
  - test/test_helper.rb
120
152
  homepage: http://www.github.com/stephenbaldwin/fuelux-rails
121
153
  licenses: []
122
- post_install_message:
154
+ post_install_message: ! "Important: You may need to add a javascript runtime to your
155
+ Gemfile in order for bootstrap's LESS files to compile to CSS. \n\n**********************************************\n\nExecJS
156
+ supports these runtimes:\n\ntherubyracer - Google V8 embedded within Ruby\n\ntherubyrhino
157
+ - Mozilla Rhino embedded within JRuby\n\nNode.js\n\nApple JavaScriptCore - Included
158
+ with Mac OS X\n\nMicrosoft Windows Script Host (JScript)\n\n**********************************************"
123
159
  rdoc_options: []
124
160
  require_paths:
125
161
  - lib
@@ -136,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
172
  - !ruby/object:Gem::Version
137
173
  version: '0'
138
174
  requirements: []
139
- rubyforge_project:
175
+ rubyforge_project: fuelux-rails
140
176
  rubygems_version: 1.8.24
141
177
  signing_key:
142
178
  specification_version: 3