uikit2-rails 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/uikit2/rails/version.rb +1 -1
  4. data/vendor/assets/javascripts/uikit/components/accordion.js +1 -1
  5. data/vendor/assets/javascripts/uikit/components/autocomplete.js +1 -1
  6. data/vendor/assets/javascripts/uikit/components/datepicker.js +1 -1
  7. data/vendor/assets/javascripts/uikit/components/form-password.js +1 -1
  8. data/vendor/assets/javascripts/uikit/components/form-select.js +1 -1
  9. data/vendor/assets/javascripts/uikit/components/grid.js +1 -1
  10. data/vendor/assets/javascripts/uikit/components/htmleditor.js +1 -1
  11. data/vendor/assets/javascripts/uikit/components/lightbox.js +2 -2
  12. data/vendor/assets/javascripts/uikit/components/nestable.js +1 -1
  13. data/vendor/assets/javascripts/uikit/components/notify.js +1 -1
  14. data/vendor/assets/javascripts/uikit/components/pagination.js +1 -1
  15. data/vendor/assets/javascripts/uikit/components/parallax.js +2 -2
  16. data/vendor/assets/javascripts/uikit/components/search.js +1 -1
  17. data/vendor/assets/javascripts/uikit/components/slider.js +11 -2
  18. data/vendor/assets/javascripts/uikit/components/slideset.js +1 -1
  19. data/vendor/assets/javascripts/uikit/components/slideshow-fx.js +1 -1
  20. data/vendor/assets/javascripts/uikit/components/slideshow.js +10 -10
  21. data/vendor/assets/javascripts/uikit/components/sortable.js +1 -1
  22. data/vendor/assets/javascripts/uikit/components/sticky.js +1 -1
  23. data/vendor/assets/javascripts/uikit/components/timepicker.js +1 -1
  24. data/vendor/assets/javascripts/uikit/components/tooltip.js +1 -1
  25. data/vendor/assets/javascripts/uikit/components/upload.js +1 -1
  26. data/vendor/assets/javascripts/uikit/core/alert.js +1 -1
  27. data/vendor/assets/javascripts/uikit/core/button.js +1 -1
  28. data/vendor/assets/javascripts/uikit/core/core.js +67 -53
  29. data/vendor/assets/javascripts/uikit/core/cover.js +1 -1
  30. data/vendor/assets/javascripts/uikit/core/dropdown.js +1 -1
  31. data/vendor/assets/javascripts/uikit/core/grid.js +3 -2
  32. data/vendor/assets/javascripts/uikit/core/modal.js +9 -6
  33. data/vendor/assets/javascripts/uikit/core/nav.js +1 -1
  34. data/vendor/assets/javascripts/uikit/core/offcanvas.js +6 -6
  35. data/vendor/assets/javascripts/uikit/core/scrollspy.js +1 -1
  36. data/vendor/assets/javascripts/uikit/core/smooth-scroll.js +1 -1
  37. data/vendor/assets/javascripts/uikit/core/switcher.js +1 -1
  38. data/vendor/assets/javascripts/uikit/core/tab.js +1 -1
  39. data/vendor/assets/javascripts/uikit/core/toggle.js +1 -1
  40. data/vendor/assets/javascripts/uikit/core/touch.js +1 -1
  41. data/vendor/assets/javascripts/uikit/core/utility.js +18 -2
  42. data/vendor/assets/javascripts/uikit.js +113 -73
  43. data/vendor/assets/stylesheets/uikit/components/accordion.almost-flat.css +1 -1
  44. data/vendor/assets/stylesheets/uikit/components/accordion.css +1 -1
  45. data/vendor/assets/stylesheets/uikit/components/accordion.gradient.css +1 -1
  46. data/vendor/assets/stylesheets/uikit/components/autocomplete.almost-flat.css +1 -1
  47. data/vendor/assets/stylesheets/uikit/components/autocomplete.css +1 -1
  48. data/vendor/assets/stylesheets/uikit/components/autocomplete.gradient.css +1 -1
  49. data/vendor/assets/stylesheets/uikit/components/datepicker.almost-flat.css +1 -1
  50. data/vendor/assets/stylesheets/uikit/components/datepicker.css +1 -1
  51. data/vendor/assets/stylesheets/uikit/components/datepicker.gradient.css +1 -1
  52. data/vendor/assets/stylesheets/uikit/components/dotnav.almost-flat.css +1 -1
  53. data/vendor/assets/stylesheets/uikit/components/dotnav.css +1 -1
  54. data/vendor/assets/stylesheets/uikit/components/dotnav.gradient.css +1 -1
  55. data/vendor/assets/stylesheets/uikit/components/form-advanced.almost-flat.css +1 -1
  56. data/vendor/assets/stylesheets/uikit/components/form-advanced.css +1 -1
  57. data/vendor/assets/stylesheets/uikit/components/form-advanced.gradient.css +1 -1
  58. data/vendor/assets/stylesheets/uikit/components/form-file.almost-flat.css +1 -1
  59. data/vendor/assets/stylesheets/uikit/components/form-file.css +1 -1
  60. data/vendor/assets/stylesheets/uikit/components/form-file.gradient.css +1 -1
  61. data/vendor/assets/stylesheets/uikit/components/form-password.almost-flat.css +1 -1
  62. data/vendor/assets/stylesheets/uikit/components/form-password.css +1 -1
  63. data/vendor/assets/stylesheets/uikit/components/form-password.gradient.css +1 -1
  64. data/vendor/assets/stylesheets/uikit/components/form-select.almost-flat.css +1 -1
  65. data/vendor/assets/stylesheets/uikit/components/form-select.css +1 -1
  66. data/vendor/assets/stylesheets/uikit/components/form-select.gradient.css +1 -1
  67. data/vendor/assets/stylesheets/uikit/components/htmleditor.almost-flat.css +1 -1
  68. data/vendor/assets/stylesheets/uikit/components/htmleditor.css +1 -1
  69. data/vendor/assets/stylesheets/uikit/components/htmleditor.gradient.css +1 -1
  70. data/vendor/assets/stylesheets/uikit/components/nestable.almost-flat.css +1 -1
  71. data/vendor/assets/stylesheets/uikit/components/nestable.css +1 -1
  72. data/vendor/assets/stylesheets/uikit/components/nestable.gradient.css +1 -1
  73. data/vendor/assets/stylesheets/uikit/components/notify.almost-flat.css +1 -1
  74. data/vendor/assets/stylesheets/uikit/components/notify.css +1 -1
  75. data/vendor/assets/stylesheets/uikit/components/notify.gradient.css +1 -1
  76. data/vendor/assets/stylesheets/uikit/components/placeholder.almost-flat.css +1 -1
  77. data/vendor/assets/stylesheets/uikit/components/placeholder.css +1 -1
  78. data/vendor/assets/stylesheets/uikit/components/placeholder.gradient.css +1 -1
  79. data/vendor/assets/stylesheets/uikit/components/progress.almost-flat.css +1 -1
  80. data/vendor/assets/stylesheets/uikit/components/progress.css +1 -1
  81. data/vendor/assets/stylesheets/uikit/components/progress.gradient.css +1 -1
  82. data/vendor/assets/stylesheets/uikit/components/search.almost-flat.css +1 -1
  83. data/vendor/assets/stylesheets/uikit/components/search.css +1 -1
  84. data/vendor/assets/stylesheets/uikit/components/search.gradient.css +1 -1
  85. data/vendor/assets/stylesheets/uikit/components/slidenav.almost-flat.css +1 -1
  86. data/vendor/assets/stylesheets/uikit/components/slidenav.css +1 -1
  87. data/vendor/assets/stylesheets/uikit/components/slidenav.gradient.css +1 -1
  88. data/vendor/assets/stylesheets/uikit/components/slider.almost-flat.css +1 -1
  89. data/vendor/assets/stylesheets/uikit/components/slider.css +1 -1
  90. data/vendor/assets/stylesheets/uikit/components/slider.gradient.css +1 -1
  91. data/vendor/assets/stylesheets/uikit/components/slideshow.almost-flat.css +1 -1
  92. data/vendor/assets/stylesheets/uikit/components/slideshow.css +1 -1
  93. data/vendor/assets/stylesheets/uikit/components/slideshow.gradient.css +1 -1
  94. data/vendor/assets/stylesheets/uikit/components/sortable.almost-flat.css +1 -1
  95. data/vendor/assets/stylesheets/uikit/components/sortable.css +1 -1
  96. data/vendor/assets/stylesheets/uikit/components/sortable.gradient.css +1 -1
  97. data/vendor/assets/stylesheets/uikit/components/sticky.almost-flat.css +1 -1
  98. data/vendor/assets/stylesheets/uikit/components/sticky.css +1 -1
  99. data/vendor/assets/stylesheets/uikit/components/sticky.gradient.css +1 -1
  100. data/vendor/assets/stylesheets/uikit/components/tooltip.almost-flat.css +1 -1
  101. data/vendor/assets/stylesheets/uikit/components/tooltip.css +1 -1
  102. data/vendor/assets/stylesheets/uikit/components/tooltip.gradient.css +1 -1
  103. data/vendor/assets/stylesheets/uikit/components/upload.almost-flat.css +1 -1
  104. data/vendor/assets/stylesheets/uikit/components/upload.css +1 -1
  105. data/vendor/assets/stylesheets/uikit/components/upload.gradient.css +1 -1
  106. data/vendor/assets/stylesheets/uikit.almost-flat.css +4 -1
  107. data/vendor/assets/stylesheets/uikit.css +4 -1
  108. data/vendor/assets/stylesheets/uikit.gradient.css +4 -1
  109. metadata +3 -3
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(UI) {
3
3
 
4
4
  "use strict";
@@ -8,7 +8,8 @@
8
8
  UI.component('stackMargin', {
9
9
 
10
10
  defaults: {
11
- 'cls': 'uk-margin-small-top'
11
+ cls: 'uk-margin-small-top',
12
+ rowfirst: false
12
13
  },
13
14
 
14
15
  boot: function() {
@@ -60,10 +61,25 @@
60
61
 
61
62
  process: function() {
62
63
 
64
+ var $this = this;
65
+
63
66
  this.columns = this.element.children();
64
67
 
65
68
  UI.Utils.stackMargin(this.columns, this.options);
66
69
 
70
+ if (!this.options.rowfirst) {
71
+ return this;
72
+ }
73
+
74
+ // Mark first column elements
75
+ var pos_cache = this.columns.removeClass(this.options.rowfirst).filter(':visible').first().position();
76
+
77
+ if (pos_cache) {
78
+ this.columns.each(function() {
79
+ UI.$(this)[UI.$(this).position().left == pos_cache.left ? 'addClass':'removeClass']($this.options.rowfirst);
80
+ });
81
+ }
82
+
67
83
  return this;
68
84
  },
69
85
 
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(core) {
3
3
 
4
4
  if (typeof define == "function" && define.amd) { // AMD
@@ -44,7 +44,7 @@
44
44
 
45
45
  var UI = {}, _UI = global.UIkit ? Object.create(global.UIkit) : undefined;
46
46
 
47
- UI.version = '2.24.0';
47
+ UI.version = '2.24.3';
48
48
 
49
49
  UI.noConflict = function() {
50
50
  // restore UIkit version
@@ -260,7 +260,11 @@
260
260
 
261
261
  UI.Utils.options = function(string) {
262
262
 
263
- if ($.isPlainObject(string)) return string;
263
+ if ($.type(string)!='string') return string;
264
+
265
+ if (string.indexOf(':') != -1 && string.trim().substr(-1) != '}') {
266
+ string = '{'+string+'}';
267
+ }
264
268
 
265
269
  var start = (string ? string.indexOf("{") : -1), options = {};
266
270
 
@@ -618,86 +622,96 @@
618
622
  if (UI.domready) UI.Utils.checkDisplay();
619
623
  });
620
624
 
621
- $(function(){
625
+ document.addEventListener('DOMContentLoaded', function(){
622
626
 
623
- UI.$body = UI.$('body');
627
+ var domReady = function() {
624
628
 
625
- UI.ready(function(context){
626
- UI.domObserve('[data-uk-observe]');
627
- });
629
+ UI.$body = UI.$('body');
628
630
 
629
- UI.on('changed.uk.dom', function(e) {
630
- UI.init(e.target);
631
- UI.Utils.checkDisplay(e.target);
632
- });
631
+ UI.ready(function(context){
632
+ UI.domObserve('[data-uk-observe]');
633
+ });
633
634
 
634
- UI.trigger('beforeready.uk.dom');
635
+ UI.on('changed.uk.dom', function(e) {
636
+ UI.init(e.target);
637
+ UI.Utils.checkDisplay(e.target);
638
+ });
635
639
 
636
- UI.component.bootComponents();
640
+ UI.trigger('beforeready.uk.dom');
637
641
 
638
- // custom scroll observer
639
- requestAnimationFrame((function(){
642
+ UI.component.bootComponents();
640
643
 
641
- var memory = {x: window.pageXOffset, y:window.pageYOffset}, dir;
644
+ // custom scroll observer
645
+ requestAnimationFrame((function(){
642
646
 
643
- var fn = function(){
647
+ var memory = {x: window.pageXOffset, y:window.pageYOffset}, dir;
644
648
 
645
- if (memory.x != window.pageXOffset || memory.y != window.pageYOffset) {
649
+ var fn = function(){
646
650
 
647
- dir = {x: 0 , y: 0};
651
+ if (memory.x != window.pageXOffset || memory.y != window.pageYOffset) {
648
652
 
649
- if (window.pageXOffset != memory.x) dir.x = window.pageXOffset > memory.x ? 1:-1;
650
- if (window.pageYOffset != memory.y) dir.y = window.pageYOffset > memory.y ? 1:-1;
653
+ dir = {x: 0 , y: 0};
651
654
 
652
- memory = {
653
- "dir": dir, "x": window.pageXOffset, "y": window.pageYOffset
654
- };
655
+ if (window.pageXOffset != memory.x) dir.x = window.pageXOffset > memory.x ? 1:-1;
656
+ if (window.pageYOffset != memory.y) dir.y = window.pageYOffset > memory.y ? 1:-1;
655
657
 
656
- UI.$doc.trigger('scrolling.uk.document', [memory]);
657
- }
658
+ memory = {
659
+ "dir": dir, "x": window.pageXOffset, "y": window.pageYOffset
660
+ };
658
661
 
659
- requestAnimationFrame(fn);
660
- };
662
+ UI.$doc.trigger('scrolling.uk.document', [memory]);
663
+ }
661
664
 
662
- if (UI.support.touch) {
663
- UI.$html.on('touchmove touchend MSPointerMove MSPointerUp pointermove pointerup', fn);
664
- }
665
+ requestAnimationFrame(fn);
666
+ };
665
667
 
666
- if (memory.x || memory.y) fn();
668
+ if (UI.support.touch) {
669
+ UI.$html.on('touchmove touchend MSPointerMove MSPointerUp pointermove pointerup', fn);
670
+ }
667
671
 
668
- return fn;
672
+ if (memory.x || memory.y) fn();
669
673
 
670
- })());
674
+ return fn;
671
675
 
672
- // run component init functions on dom
673
- UI.trigger('domready.uk.dom');
676
+ })());
674
677
 
675
- if (UI.support.touch) {
678
+ // run component init functions on dom
679
+ UI.trigger('domready.uk.dom');
676
680
 
677
- // remove css hover rules for touch devices
678
- // UI.Utils.removeCssRules(/\.uk-(?!navbar).*:hover/);
681
+ if (UI.support.touch) {
679
682
 
680
- // viewport unit fix for uk-height-viewport - should be fixed in iOS 8
681
- if (navigator.userAgent.match(/(iPad|iPhone|iPod)/g)) {
683
+ // remove css hover rules for touch devices
684
+ // UI.Utils.removeCssRules(/\.uk-(?!navbar).*:hover/);
682
685
 
683
- UI.$win.on('load orientationchange resize', UI.Utils.debounce((function(){
686
+ // viewport unit fix for uk-height-viewport - should be fixed in iOS 8
687
+ if (navigator.userAgent.match(/(iPad|iPhone|iPod)/g)) {
684
688
 
685
- var fn = function() {
686
- $('.uk-height-viewport').css('height', window.innerHeight);
687
- return fn;
688
- };
689
+ UI.$win.on('load orientationchange resize', UI.Utils.debounce((function(){
689
690
 
690
- return fn();
691
+ var fn = function() {
692
+ $('.uk-height-viewport').css('height', window.innerHeight);
693
+ return fn;
694
+ };
691
695
 
692
- })(), 100));
696
+ return fn();
697
+
698
+ })(), 100));
699
+ }
693
700
  }
701
+
702
+ UI.trigger('afterready.uk.dom');
703
+
704
+ // mark that domready is left behind
705
+ UI.domready = true;
706
+ };
707
+
708
+ if (document.readyState == 'complete' || document.readyState == 'interactive') {
709
+ setTimeout(domReady);
694
710
  }
695
711
 
696
- UI.trigger('afterready.uk.dom');
712
+ return domReady;
697
713
 
698
- // mark that domready is left behind
699
- UI.domready = true;
700
- });
714
+ }());
701
715
 
702
716
  // add touch identifier class
703
717
  UI.$html.addClass(UI.support.touch ? "uk-touch" : "uk-notouch");
@@ -913,7 +927,8 @@
913
927
  UI.component('stackMargin', {
914
928
 
915
929
  defaults: {
916
- 'cls': 'uk-margin-small-top'
930
+ cls: 'uk-margin-small-top',
931
+ rowfirst: false
917
932
  },
918
933
 
919
934
  boot: function() {
@@ -965,10 +980,25 @@
965
980
 
966
981
  process: function() {
967
982
 
983
+ var $this = this;
984
+
968
985
  this.columns = this.element.children();
969
986
 
970
987
  UI.Utils.stackMargin(this.columns, this.options);
971
988
 
989
+ if (!this.options.rowfirst) {
990
+ return this;
991
+ }
992
+
993
+ // Mark first column elements
994
+ var pos_cache = this.columns.removeClass(this.options.rowfirst).filter(':visible').first().position();
995
+
996
+ if (pos_cache) {
997
+ this.columns.each(function() {
998
+ UI.$(this)[UI.$(this).position().left == pos_cache.left ? 'addClass':'removeClass']($this.options.rowfirst);
999
+ });
1000
+ }
1001
+
972
1002
  return this;
973
1003
  },
974
1004
 
@@ -1065,7 +1095,7 @@
1065
1095
  firstvisible = elements.filter(":visible:first"),
1066
1096
  offset = firstvisible.length ? (firstvisible.position().top + firstvisible.outerHeight()) - 1 : false; // (-1): weird firefox bug when parent container is display:flex
1067
1097
 
1068
- if (offset === false) return;
1098
+ if (offset === false || elements.length == 1) return;
1069
1099
 
1070
1100
  elements.each(function() {
1071
1101
 
@@ -1435,7 +1465,7 @@
1435
1465
  if (!target) return;
1436
1466
 
1437
1467
  if ($this.options.closest) {
1438
- links.closest(clsClosest).removeClass(clsActive);
1468
+ links.blur().closest(clsClosest).removeClass(clsActive);
1439
1469
  navitems = links.filter("a[href='#"+target.attr("id")+"']").closest(clsClosest).addClass(clsActive);
1440
1470
  } else {
1441
1471
  navitems = links.removeClass(clsActive).filter("a[href='#"+target.attr("id")+"']").addClass(clsActive);
@@ -1997,6 +2027,9 @@
1997
2027
  }
1998
2028
 
1999
2029
  if (active && active == $this) {
2030
+ if (!$this.dropdown.find(e.target).length || $target.is(".uk-dropdown-close") || $target.parents(".uk-dropdown-close").length) {
2031
+ $this.hide();
2032
+ }
2000
2033
  return;
2001
2034
  }
2002
2035
 
@@ -2405,7 +2438,8 @@
2405
2438
  UI.component('gridMargin', {
2406
2439
 
2407
2440
  defaults: {
2408
- "cls": "uk-grid-margin"
2441
+ cls : 'uk-grid-margin',
2442
+ rowfirst : 'uk-row-first'
2409
2443
  },
2410
2444
 
2411
2445
  boot: function() {
@@ -2576,14 +2610,17 @@
2576
2610
 
2577
2611
  if (scrollable.length) {
2578
2612
 
2579
- scrollable.css("height", 0);
2613
+ scrollable.css('height', 0);
2580
2614
 
2581
- var offset = Math.abs(parseInt(this.dialog.css("margin-top"), 10)),
2615
+ var offset = Math.abs(parseInt(this.dialog.css('margin-top'), 10)),
2582
2616
  dh = this.dialog.outerHeight(),
2583
2617
  wh = window.innerHeight,
2584
2618
  h = wh - 2*(offset < 20 ? 20:offset) - dh;
2585
2619
 
2586
- scrollable.css("height", h < this.options.minScrollHeight ? "":h);
2620
+ scrollable.css({
2621
+ 'max-height': (h < this.options.minScrollHeight ? '':h),
2622
+ 'height':''
2623
+ });
2587
2624
 
2588
2625
  return true;
2589
2626
  }
@@ -2597,19 +2634,19 @@
2597
2634
  if (activeCount > 0) activeCount--;
2598
2635
  else activeCount = 0;
2599
2636
 
2600
- this.element.hide().removeClass("uk-open");
2637
+ this.element.hide().removeClass('uk-open');
2601
2638
 
2602
2639
  // Update ARIA
2603
2640
  this.element.attr('aria-hidden', 'true');
2604
2641
 
2605
2642
  if (!activeCount) {
2606
- $html.removeClass("uk-modal-page");
2643
+ $html.removeClass('uk-modal-page');
2607
2644
  body.css(this.paddingdir, "");
2608
2645
  }
2609
2646
 
2610
2647
  if(active===this) active = false;
2611
2648
 
2612
- this.trigger("hide.uk.modal");
2649
+ this.trigger('hide.uk.modal');
2613
2650
  },
2614
2651
 
2615
2652
  isActive: function() {
@@ -2709,18 +2746,21 @@
2709
2746
  return modal.show();
2710
2747
  };
2711
2748
 
2712
- UI.modal.confirm = function(content, onconfirm, options) {
2749
+ UI.modal.confirm = function(content, onconfirm, oncancel) {
2750
+
2751
+ var options = arguments.length > 1 && arguments[arguments.length-1] ? arguments[arguments.length-1] : {};
2713
2752
 
2714
2753
  onconfirm = UI.$.isFunction(onconfirm) ? onconfirm : function(){};
2715
- options = UI.$.extend(true, {bgclose:false, keyboard:false, modal:false, labels:UI.modal.labels}, options);
2754
+ oncancel = UI.$.isFunction(oncancel) ? oncancel : function(){};
2755
+ options = UI.$.extend(true, {bgclose:false, keyboard:false, modal:false, labels:UI.modal.labels}, UI.$.isFunction(options) ? {}:options);
2716
2756
 
2717
2757
  var modal = UI.modal.dialog(([
2718
2758
  '<div class="uk-margin uk-modal-content">'+String(content)+'</div>',
2719
- '<div class="uk-modal-footer uk-text-right"><button class="uk-button uk-modal-close">'+options.labels.Cancel+'</button> <button class="uk-button uk-button-primary js-modal-confirm">'+options.labels.Ok+'</button></div>'
2759
+ '<div class="uk-modal-footer uk-text-right"><button class="uk-button js-modal-confirm-cancel">'+options.labels.Cancel+'</button> <button class="uk-button uk-button-primary js-modal-confirm">'+options.labels.Ok+'</button></div>'
2720
2760
  ]).join(""), options);
2721
2761
 
2722
- modal.element.find(".js-modal-confirm").on("click", function(){
2723
- onconfirm();
2762
+ modal.element.find(".js-modal-confirm, .js-modal-confirm-cancel").on("click", function(){
2763
+ UI.$(this).is('.js-modal-confirm') ? onconfirm() : oncancel();
2724
2764
  modal.hide();
2725
2765
  });
2726
2766
 
@@ -3047,7 +3087,7 @@
3047
3087
  Offcanvas.hide();
3048
3088
  });
3049
3089
 
3050
- element.on("click", "a[href^='#']", function(e){
3090
+ element.on("click", "a[href*='#']", function(e){
3051
3091
 
3052
3092
  var link = UI.$(this),
3053
3093
  href = link.attr("href");
@@ -3061,16 +3101,16 @@
3061
3101
  var target;
3062
3102
 
3063
3103
  try {
3064
- target = UI.$(href);
3104
+ target = UI.$(link[0].hash);
3065
3105
  } catch (e){
3066
- target = "";
3106
+ target = '';
3067
3107
  }
3068
3108
 
3069
3109
  if (!target.length) {
3070
- target = UI.$('[name="'+href.replace('#','')+'"]');
3110
+ target = UI.$('[name="'+link[0].hash.replace('#','')+'"]');
3071
3111
  }
3072
3112
 
3073
- if (target.length && link.attr('data-uk-smooth-scroll') && UI.Utils.scrollToElement) {
3113
+ if (target.length && UI.Utils.scrollToElement) {
3074
3114
  UI.Utils.scrollToElement(target, UI.Utils.options(link.attr('data-uk-smooth-scroll') || '{}'));
3075
3115
  } else {
3076
3116
  window.location.href = href;
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Accordion
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Accordion
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Accordion
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Autocomplete
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Autocomplete
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Autocomplete
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Datepicker
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Datepicker
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Datepicker
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Dotnav
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Dotnav
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Dotnav
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Form advanced
4
4
  Note: Only works in Webkit at the moment
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Form advanced
4
4
  Note: Only works in Webkit at the moment
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Form advanced
4
4
  Note: Only works in Webkit at the moment
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Form file
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Form file
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Form file
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Form password
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Form password
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Form password
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Form select
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Form select
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Form select
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: HTML editor
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: HTML editor
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: HTML editor
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Nestable
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Nestable
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Nestable
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Notify
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Notify
4
4
  ========================================================================== */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Notify
4
4
  ========================================================================== */