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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35f43cc4e5b412a795a8e22dc80163c482dbd1ff
4
- data.tar.gz: 9e8fcc6a21ded31e21caf2581d4dc51adf2c52a4
3
+ metadata.gz: eae24d19dc83f7226dff69af10369ca441660f6d
4
+ data.tar.gz: 70a336710c48981701378f1b8d36afcadef8e620
5
5
  SHA512:
6
- metadata.gz: 01ae5bf83dbe1ca0308e3ccf8d9c1c258c07e61d2355866cd0a70528a838786986d1c72dd9d025c52c7aadddb2b0ff4cdfd7f5faa16912a2c4123f0b164a2301
7
- data.tar.gz: 5e13121840a9ce05d2a9ddad20032735a86ef81c8902f3e41e057b3074811a468f0dbfc6f9b09c301d8bf64337fad449e8dc8de7778220a16a05e24d7669ce5e
6
+ metadata.gz: 0c962edb997af62cd051f44f9f15539a87f32c5b5503129c7e38ffc0c3341af8b8a1e2e9404d8e6db6094f4c2c3f687558074140e109bad8b3899a477d58fdb1
7
+ data.tar.gz: a99e2b0746530cf8d3672ab473f1d057d9dd51e1eedad026a6dcb0ddb45d579685615d78477fd6d16da15d922961da88d5a002c780bd22b7c1f4b29232b580b0
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/uikit2-rails.svg)](http://badge.fury.io/rb/uikit2-rails)
4
4
 
5
- UIkit 2.24.0
5
+ UIkit 2.24.3
6
6
 
7
7
  ## Installation
8
8
 
@@ -1,5 +1,5 @@
1
1
  module Uikit2
2
2
  module Rails
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -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(addon) {
3
3
  var component;
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
  (function(addon) {
3
3
 
4
4
  var component;
@@ -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(addon) {
3
3
 
4
4
  var component;
@@ -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(addon) {
3
3
 
4
4
  var component;
@@ -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(addon) {
3
3
 
4
4
  var component;
@@ -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(addon) {
3
3
 
4
4
  var component;
@@ -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(addon) {
3
3
 
4
4
  var component;
@@ -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(addon) {
3
3
 
4
4
  var component;
@@ -85,7 +85,7 @@
85
85
 
86
86
  siblings.push({
87
87
  'source': ele.attr('href'),
88
- 'title' : ele.attr('title'),
88
+ 'title' : ele.attr('data-title') || ele.attr('title'),
89
89
  'type' : ele.attr("data-lightbox-type") || 'auto',
90
90
  'link' : ele
91
91
  });
@@ -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
  * Based on Nestable jQuery Plugin - Copyright (c) 2012 David Bushell - http://dbushell.com/
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
  (function(addon) {
3
3
 
4
4
  var component;
@@ -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
  * Based on simplePagination - Copyright (c) 2012 Flavius Matis - http://flaviusmatis.github.com/simplePagination.js/ (MIT)
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
  (function(addon) {
3
3
 
4
4
  var component;
@@ -301,7 +301,7 @@
301
301
  h += extra;
302
302
  w += Math.ceil(extra * ratio);
303
303
 
304
- if (w > size.w && h < size.h) {
304
+ if (w-extra > size.w && h < size.h) {
305
305
  return obj.element.css({'background-size': ''});
306
306
  }
307
307
 
@@ -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(addon) {
3
3
 
4
4
  var component;
@@ -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(addon) {
3
3
 
4
4
  var component;
@@ -185,7 +185,7 @@
185
185
 
186
186
  this.container.css({'min-width': pos, 'min-height': maxheight});
187
187
 
188
- if (this.options.infinite && pos <= (2*this.vp) && !this.itemsResized) {
188
+ if (this.options.infinite && (pos <= (2*this.vp) || this.items.length < 5) && !this.itemsResized) {
189
189
 
190
190
  // fill with cloned items
191
191
  this.container.children().each(function(idx){
@@ -292,6 +292,15 @@
292
292
  }
293
293
  }
294
294
 
295
+ // mark elements
296
+ var left = this.items.eq(idx).data('left');
297
+
298
+ this.items.removeClass('uk-slide-before uk-slide-after').each(function(i){
299
+ if (i!==idx) {
300
+ UI.$(this).addClass(UI.$(this).data('left') < left ? 'uk-slide-before':'uk-slide-after');
301
+ }
302
+ });
303
+
295
304
  this.focus = idx;
296
305
 
297
306
  this.trigger('focusitem.uk.slider', [idx,this.items.eq(idx),this]);
@@ -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(addon) {
3
3
 
4
4
  var component;
@@ -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(addon) {
3
3
 
4
4
  var component;
@@ -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(addon) {
3
3
 
4
4
  var component;
@@ -288,7 +288,7 @@
288
288
  var $this = this,
289
289
  current = this.slides.eq(this.current),
290
290
  next = this.slides.eq(index),
291
- dir = direction ? direction : this.current < index ? -1 : 1,
291
+ dir = direction ? direction : this.current < index ? 1 : -1,
292
292
  currentmedia = current.data('media'),
293
293
  animation = Animations[this.options.animation] ? this.options.animation : 'fade',
294
294
  nextmedia = next.data('media'),
@@ -444,14 +444,14 @@
444
444
 
445
445
  next.css('opacity', 1).one(UI.support.animation.end, function() {
446
446
 
447
- current.removeClass(dir === 1 ? 'uk-slideshow-scroll-backward-out' : 'uk-slideshow-scroll-forward-out');
448
- next.css('opacity', '').removeClass(dir === 1 ? 'uk-slideshow-scroll-backward-in' : 'uk-slideshow-scroll-forward-in');
447
+ current.removeClass(dir == -1 ? 'uk-slideshow-scroll-backward-out' : 'uk-slideshow-scroll-forward-out');
448
+ next.css('opacity', '').removeClass(dir == -1 ? 'uk-slideshow-scroll-backward-in' : 'uk-slideshow-scroll-forward-in');
449
449
  d.resolve();
450
450
 
451
451
  }.bind(this));
452
452
 
453
- current.addClass(dir == 1 ? 'uk-slideshow-scroll-backward-out' : 'uk-slideshow-scroll-forward-out');
454
- next.addClass(dir == 1 ? 'uk-slideshow-scroll-backward-in' : 'uk-slideshow-scroll-forward-in');
453
+ current.addClass(dir == -1 ? 'uk-slideshow-scroll-backward-out' : 'uk-slideshow-scroll-forward-out');
454
+ next.addClass(dir == -1 ? 'uk-slideshow-scroll-backward-in' : 'uk-slideshow-scroll-forward-in');
455
455
  next.width(); // force redraw
456
456
 
457
457
  return d.promise();
@@ -466,14 +466,14 @@
466
466
 
467
467
  next.css('opacity', 1).one(UI.support.animation.end, function() {
468
468
 
469
- current.removeClass(dir === 1 ? 'uk-slideshow-swipe-backward-out' : 'uk-slideshow-swipe-forward-out');
470
- next.css('opacity', '').removeClass(dir === 1 ? 'uk-slideshow-swipe-backward-in' : 'uk-slideshow-swipe-forward-in');
469
+ current.removeClass(dir === -1 ? 'uk-slideshow-swipe-backward-out' : 'uk-slideshow-swipe-forward-out');
470
+ next.css('opacity', '').removeClass(dir === -1 ? 'uk-slideshow-swipe-backward-in' : 'uk-slideshow-swipe-forward-in');
471
471
  d.resolve();
472
472
 
473
473
  }.bind(this));
474
474
 
475
- current.addClass(dir == 1 ? 'uk-slideshow-swipe-backward-out' : 'uk-slideshow-swipe-forward-out');
476
- next.addClass(dir == 1 ? 'uk-slideshow-swipe-backward-in' : 'uk-slideshow-swipe-forward-in');
475
+ current.addClass(dir == -1 ? 'uk-slideshow-swipe-backward-out' : 'uk-slideshow-swipe-forward-out');
476
+ next.addClass(dir == -1 ? 'uk-slideshow-swipe-backward-in' : 'uk-slideshow-swipe-forward-in');
477
477
  next.width(); // force redraw
478
478
 
479
479
  return d.promise();
@@ -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
  * Based on nativesortable - Copyright (c) Brian Grinstead - https://github.com/bgrins/nativesortable
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
  (function(addon) {
3
3
 
4
4
  var component;
@@ -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(addon) {
3
3
 
4
4
  var component;
@@ -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(addon) {
3
3
  var component;
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
  (function(addon) {
3
3
 
4
4
  var component;
@@ -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";
@@ -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";
@@ -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(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.2';
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
+ }
671
+
672
+ if (memory.x || memory.y) fn();
667
673
 
668
- return fn;
674
+ return fn;
669
675
 
670
- })());
676
+ })());
671
677
 
672
- // run component init functions on dom
673
- UI.trigger('domready.uk.dom');
678
+ // run component init functions on dom
679
+ UI.trigger('domready.uk.dom');
674
680
 
675
- if (UI.support.touch) {
681
+ if (UI.support.touch) {
676
682
 
677
- // remove css hover rules for touch devices
678
- // UI.Utils.removeCssRules(/\.uk-(?!navbar).*:hover/);
683
+ // remove css hover rules for touch devices
684
+ // UI.Utils.removeCssRules(/\.uk-(?!navbar).*:hover/);
679
685
 
680
- // viewport unit fix for uk-height-viewport - should be fixed in iOS 8
681
- if (navigator.userAgent.match(/(iPad|iPhone|iPod)/g)) {
686
+ // viewport unit fix for uk-height-viewport - should be fixed in iOS 8
687
+ if (navigator.userAgent.match(/(iPad|iPhone|iPod)/g)) {
682
688
 
683
- UI.$win.on('load orientationchange resize', UI.Utils.debounce((function(){
689
+ UI.$win.on('load orientationchange resize', UI.Utils.debounce((function(){
684
690
 
685
- var fn = function() {
686
- $('.uk-height-viewport').css('height', window.innerHeight);
687
- return fn;
688
- };
691
+ var fn = function() {
692
+ $('.uk-height-viewport').css('height', window.innerHeight);
693
+ return fn;
694
+ };
689
695
 
690
- return fn();
696
+ return fn();
691
697
 
692
- })(), 100));
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");
@@ -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";
@@ -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";
@@ -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";
@@ -87,7 +87,8 @@
87
87
  UI.component('gridMargin', {
88
88
 
89
89
  defaults: {
90
- "cls": "uk-grid-margin"
90
+ cls : 'uk-grid-margin',
91
+ rowfirst : 'uk-row-first'
91
92
  },
92
93
 
93
94
  boot: function() {
@@ -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";
@@ -280,18 +280,21 @@
280
280
  return modal.show();
281
281
  };
282
282
 
283
- UI.modal.confirm = function(content, onconfirm, options) {
283
+ UI.modal.confirm = function(content, onconfirm, oncancel) {
284
+
285
+ var options = arguments.length > 1 && arguments[arguments.length-1] ? arguments[arguments.length-1] : {};
284
286
 
285
287
  onconfirm = UI.$.isFunction(onconfirm) ? onconfirm : function(){};
286
- options = UI.$.extend(true, {bgclose:false, keyboard:false, modal:false, labels:UI.modal.labels}, options);
288
+ oncancel = UI.$.isFunction(oncancel) ? oncancel : function(){};
289
+ options = UI.$.extend(true, {bgclose:false, keyboard:false, modal:false, labels:UI.modal.labels}, UI.$.isFunction(options) ? {}:options);
287
290
 
288
291
  var modal = UI.modal.dialog(([
289
292
  '<div class="uk-margin uk-modal-content">'+String(content)+'</div>',
290
- '<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>'
293
+ '<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>'
291
294
  ]).join(""), options);
292
295
 
293
- modal.element.find(".js-modal-confirm").on("click", function(){
294
- onconfirm();
296
+ modal.element.find(".js-modal-confirm, .js-modal-confirm-cancel").on("click", function(){
297
+ UI.$(this).is('.js-modal-confirm') ? onconfirm() : oncancel();
295
298
  modal.hide();
296
299
  });
297
300
 
@@ -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";
@@ -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";
@@ -98,7 +98,7 @@
98
98
  Offcanvas.hide();
99
99
  });
100
100
 
101
- element.on("click", "a[href^='#']", function(e){
101
+ element.on("click", "a[href*='#']", function(e){
102
102
 
103
103
  var link = UI.$(this),
104
104
  href = link.attr("href");
@@ -112,16 +112,16 @@
112
112
  var target;
113
113
 
114
114
  try {
115
- target = UI.$(href);
115
+ target = UI.$(link[0].hash);
116
116
  } catch (e){
117
- target = "";
117
+ target = '';
118
118
  }
119
119
 
120
120
  if (!target.length) {
121
- target = UI.$('[name="'+href.replace('#','')+'"]');
121
+ target = UI.$('[name="'+link[0].hash.replace('#','')+'"]');
122
122
  }
123
123
 
124
- if (target.length && link.attr('data-uk-smooth-scroll') && UI.Utils.scrollToElement) {
124
+ if (target.length && UI.Utils.scrollToElement) {
125
125
  UI.Utils.scrollToElement(target, UI.Utils.options(link.attr('data-uk-smooth-scroll') || '{}'));
126
126
  } else {
127
127
  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
  (function(UI) {
3
3
 
4
4
  "use strict";
@@ -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";
@@ -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";
@@ -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";
@@ -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";
@@ -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
  // Based on Zeptos touch.js
3
3
  // https://raw.github.com/madrobby/zepto/master/src/touch.js
4
4
  // Zepto.js may be freely distributed under the MIT license.