uikit2-rails 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/lib/uikit2/rails/version.rb +1 -1
  3. data/vendor/assets/fonts/FontAwesome.otf +0 -0
  4. data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
  5. data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
  6. data/vendor/assets/fonts/fontawesome-webfont.woff2 +0 -0
  7. data/vendor/assets/javascripts/uikit.js +22 -9
  8. data/vendor/assets/javascripts/uikit/components/accordion.js +1 -1
  9. data/vendor/assets/javascripts/uikit/components/autocomplete.js +1 -1
  10. data/vendor/assets/javascripts/uikit/components/datepicker.js +1 -1
  11. data/vendor/assets/javascripts/uikit/components/form-password.js +1 -1
  12. data/vendor/assets/javascripts/uikit/components/form-select.js +1 -1
  13. data/vendor/assets/javascripts/uikit/components/grid-parallax.js +1 -1
  14. data/vendor/assets/javascripts/uikit/components/grid.js +1 -1
  15. data/vendor/assets/javascripts/uikit/components/htmleditor.js +21 -9
  16. data/vendor/assets/javascripts/uikit/components/lightbox.js +12 -4
  17. data/vendor/assets/javascripts/uikit/components/nestable.js +14 -2
  18. data/vendor/assets/javascripts/uikit/components/notify.js +1 -1
  19. data/vendor/assets/javascripts/uikit/components/pagination.js +1 -1
  20. data/vendor/assets/javascripts/uikit/components/parallax.js +1 -1
  21. data/vendor/assets/javascripts/uikit/components/search.js +1 -1
  22. data/vendor/assets/javascripts/uikit/components/slider.js +1 -1
  23. data/vendor/assets/javascripts/uikit/components/slideset.js +1 -1
  24. data/vendor/assets/javascripts/uikit/components/slideshow-fx.js +1 -1
  25. data/vendor/assets/javascripts/uikit/components/slideshow.js +1 -1
  26. data/vendor/assets/javascripts/uikit/components/sortable.js +12 -7
  27. data/vendor/assets/javascripts/uikit/components/sticky.js +1 -1
  28. data/vendor/assets/javascripts/uikit/components/timepicker.js +1 -1
  29. data/vendor/assets/javascripts/uikit/components/tooltip.js +1 -1
  30. data/vendor/assets/javascripts/uikit/components/upload.js +1 -1
  31. data/vendor/assets/javascripts/uikit/core/alert.js +1 -1
  32. data/vendor/assets/javascripts/uikit/core/button.js +1 -1
  33. data/vendor/assets/javascripts/uikit/core/core.js +15 -2
  34. data/vendor/assets/javascripts/uikit/core/cover.js +1 -1
  35. data/vendor/assets/javascripts/uikit/core/dropdown.js +1 -1
  36. data/vendor/assets/javascripts/uikit/core/grid.js +1 -1
  37. data/vendor/assets/javascripts/uikit/core/modal.js +8 -8
  38. data/vendor/assets/javascripts/uikit/core/nav.js +1 -1
  39. data/vendor/assets/javascripts/uikit/core/offcanvas.js +1 -1
  40. data/vendor/assets/javascripts/uikit/core/scrollspy.js +1 -1
  41. data/vendor/assets/javascripts/uikit/core/smooth-scroll.js +1 -1
  42. data/vendor/assets/javascripts/uikit/core/switcher.js +1 -1
  43. data/vendor/assets/javascripts/uikit/core/tab.js +1 -1
  44. data/vendor/assets/javascripts/uikit/core/toggle.js +1 -1
  45. data/vendor/assets/javascripts/uikit/core/touch.js +1 -1
  46. data/vendor/assets/javascripts/uikit/core/utility.js +1 -1
  47. data/vendor/assets/stylesheets/uikit.almost-flat.css +82 -3
  48. data/vendor/assets/stylesheets/uikit.css +82 -3
  49. data/vendor/assets/stylesheets/uikit.gradient.css +82 -3
  50. data/vendor/assets/stylesheets/uikit/components/accordion.almost-flat.css +1 -1
  51. data/vendor/assets/stylesheets/uikit/components/accordion.css +1 -1
  52. data/vendor/assets/stylesheets/uikit/components/accordion.gradient.css +1 -1
  53. data/vendor/assets/stylesheets/uikit/components/autocomplete.almost-flat.css +1 -1
  54. data/vendor/assets/stylesheets/uikit/components/autocomplete.css +1 -1
  55. data/vendor/assets/stylesheets/uikit/components/autocomplete.gradient.css +1 -1
  56. data/vendor/assets/stylesheets/uikit/components/datepicker.almost-flat.css +1 -1
  57. data/vendor/assets/stylesheets/uikit/components/datepicker.css +1 -1
  58. data/vendor/assets/stylesheets/uikit/components/datepicker.gradient.css +1 -1
  59. data/vendor/assets/stylesheets/uikit/components/dotnav.almost-flat.css +1 -1
  60. data/vendor/assets/stylesheets/uikit/components/dotnav.css +1 -1
  61. data/vendor/assets/stylesheets/uikit/components/dotnav.gradient.css +1 -1
  62. data/vendor/assets/stylesheets/uikit/components/form-advanced.almost-flat.css +1 -1
  63. data/vendor/assets/stylesheets/uikit/components/form-advanced.css +1 -1
  64. data/vendor/assets/stylesheets/uikit/components/form-advanced.gradient.css +1 -1
  65. data/vendor/assets/stylesheets/uikit/components/form-file.almost-flat.css +1 -1
  66. data/vendor/assets/stylesheets/uikit/components/form-file.css +1 -1
  67. data/vendor/assets/stylesheets/uikit/components/form-file.gradient.css +1 -1
  68. data/vendor/assets/stylesheets/uikit/components/form-password.almost-flat.css +1 -1
  69. data/vendor/assets/stylesheets/uikit/components/form-password.css +1 -1
  70. data/vendor/assets/stylesheets/uikit/components/form-password.gradient.css +1 -1
  71. data/vendor/assets/stylesheets/uikit/components/form-select.almost-flat.css +1 -1
  72. data/vendor/assets/stylesheets/uikit/components/form-select.css +1 -1
  73. data/vendor/assets/stylesheets/uikit/components/form-select.gradient.css +1 -1
  74. data/vendor/assets/stylesheets/uikit/components/htmleditor.almost-flat.css +1 -1
  75. data/vendor/assets/stylesheets/uikit/components/htmleditor.css +1 -1
  76. data/vendor/assets/stylesheets/uikit/components/htmleditor.gradient.css +1 -1
  77. data/vendor/assets/stylesheets/uikit/components/nestable.almost-flat.css +1 -1
  78. data/vendor/assets/stylesheets/uikit/components/nestable.css +1 -1
  79. data/vendor/assets/stylesheets/uikit/components/nestable.gradient.css +1 -1
  80. data/vendor/assets/stylesheets/uikit/components/notify.almost-flat.css +1 -1
  81. data/vendor/assets/stylesheets/uikit/components/notify.css +1 -1
  82. data/vendor/assets/stylesheets/uikit/components/notify.gradient.css +1 -1
  83. data/vendor/assets/stylesheets/uikit/components/placeholder.almost-flat.css +1 -1
  84. data/vendor/assets/stylesheets/uikit/components/placeholder.css +1 -1
  85. data/vendor/assets/stylesheets/uikit/components/placeholder.gradient.css +1 -1
  86. data/vendor/assets/stylesheets/uikit/components/progress.almost-flat.css +1 -1
  87. data/vendor/assets/stylesheets/uikit/components/progress.css +1 -1
  88. data/vendor/assets/stylesheets/uikit/components/progress.gradient.css +1 -1
  89. data/vendor/assets/stylesheets/uikit/components/search.almost-flat.css +3 -3
  90. data/vendor/assets/stylesheets/uikit/components/search.css +3 -3
  91. data/vendor/assets/stylesheets/uikit/components/search.gradient.css +3 -3
  92. data/vendor/assets/stylesheets/uikit/components/slidenav.almost-flat.css +1 -1
  93. data/vendor/assets/stylesheets/uikit/components/slidenav.css +1 -1
  94. data/vendor/assets/stylesheets/uikit/components/slidenav.gradient.css +1 -1
  95. data/vendor/assets/stylesheets/uikit/components/slider.almost-flat.css +1 -1
  96. data/vendor/assets/stylesheets/uikit/components/slider.css +1 -1
  97. data/vendor/assets/stylesheets/uikit/components/slider.gradient.css +1 -1
  98. data/vendor/assets/stylesheets/uikit/components/slideshow.almost-flat.css +1 -1
  99. data/vendor/assets/stylesheets/uikit/components/slideshow.css +1 -1
  100. data/vendor/assets/stylesheets/uikit/components/slideshow.gradient.css +1 -1
  101. data/vendor/assets/stylesheets/uikit/components/sortable.almost-flat.css +1 -1
  102. data/vendor/assets/stylesheets/uikit/components/sortable.css +1 -1
  103. data/vendor/assets/stylesheets/uikit/components/sortable.gradient.css +1 -1
  104. data/vendor/assets/stylesheets/uikit/components/sticky.almost-flat.css +1 -1
  105. data/vendor/assets/stylesheets/uikit/components/sticky.css +1 -1
  106. data/vendor/assets/stylesheets/uikit/components/sticky.gradient.css +1 -1
  107. data/vendor/assets/stylesheets/uikit/components/tooltip.almost-flat.css +1 -1
  108. data/vendor/assets/stylesheets/uikit/components/tooltip.css +1 -1
  109. data/vendor/assets/stylesheets/uikit/components/tooltip.gradient.css +1 -1
  110. data/vendor/assets/stylesheets/uikit/components/upload.almost-flat.css +1 -1
  111. data/vendor/assets/stylesheets/uikit/components/upload.css +1 -1
  112. data/vendor/assets/stylesheets/uikit/components/upload.gradient.css +1 -1
  113. metadata +2 -3
  114. data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4587edf142552800d702aeb2624227b799687e7e
4
- data.tar.gz: c67edf0075d41a93df7f2ca0d208b335c0a85559
3
+ metadata.gz: 9ad30b900e9ea5d892e994647a2efd4a8cd29c93
4
+ data.tar.gz: c30a6f6f21aeb33d562491b35c03af05899fe3bb
5
5
  SHA512:
6
- metadata.gz: e6206e5fa5748669105ec7ff9318b8b30bfaf7099108eec811f47528e68b9760724566b5306148ac2c0f27f77681e9c3f56f8496168a4a4aced2b97b5047e0bc
7
- data.tar.gz: 660fe127a51737240ddbd01a50b6b401ccc3bbd7b46d512c8c81096af8c9ceb3772b2578639422ca2697c630b3b365b4ad21bba17efcf1a3427b4f97719e5fcf
6
+ metadata.gz: 82974b4f82883909ab7c8b460d9caac1ee2f3b75182457199ad2d0148a3fd5616d4f9377a377b009b451b1c8cfb7f987a8817490e3e83147aeafcb25cf7b3f30
7
+ data.tar.gz: 2b1968f73bc7b3d2522ed1932a031ec81e58ac0609e31116cf821bfda61afa96370419cb14ab2caa95b36cf9edb3eb0c832073fea0d687181e3e32afce841cc0
@@ -1,5 +1,5 @@
1
1
  module Uikit2
2
2
  module Rails
3
- VERSION = "0.1.8"
3
+ VERSION = "0.1.9"
4
4
  end
5
5
  end
Binary file
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2';
47
+ UI.version = '2.26.3';
48
48
 
49
49
  UI.noConflict = function() {
50
50
  // restore UIkit version
@@ -181,6 +181,19 @@
181
181
  };
182
182
  };
183
183
 
184
+ UI.Utils.throttle = function (func, limit) {
185
+ var wait = false;
186
+ return function () {
187
+ if (!wait) {
188
+ func.call();
189
+ wait = true;
190
+ setTimeout(function () {
191
+ wait = false;
192
+ }, limit);
193
+ }
194
+ }
195
+ };
196
+
184
197
  UI.Utils.removeCssRules = function(selectorRegEx) {
185
198
  var idx, idxs, stylesheet, _i, _j, _k, _len, _len1, _len2, _ref;
186
199
 
@@ -2575,9 +2588,7 @@
2575
2588
  }
2576
2589
  });
2577
2590
 
2578
- UI.domObserve(this.element, function(e) {
2579
- $this.resize();
2580
- });
2591
+ UI.domObserve(this.element, function(e) { $this.resize(); });
2581
2592
  },
2582
2593
 
2583
2594
  toggle: function() {
@@ -2597,7 +2608,7 @@
2597
2608
  }
2598
2609
 
2599
2610
  this.element.removeClass("uk-open").show();
2600
- this.resize();
2611
+ this.resize(true);
2601
2612
 
2602
2613
  if (this.options.modal) {
2603
2614
  active = this;
@@ -2646,7 +2657,9 @@
2646
2657
  return this;
2647
2658
  },
2648
2659
 
2649
- resize: function() {
2660
+ resize: function(force) {
2661
+
2662
+ if (!this.isActive() && !force) return;
2650
2663
 
2651
2664
  var bodywidth = body.width();
2652
2665
 
@@ -2710,13 +2723,13 @@
2710
2723
  body.css(this.paddingdir, "");
2711
2724
  }
2712
2725
 
2713
- if(active===this) active = false;
2726
+ if (active===this) active = false;
2714
2727
 
2715
2728
  this.trigger('hide.uk.modal');
2716
2729
  },
2717
2730
 
2718
2731
  isActive: function() {
2719
- return this.active;
2732
+ return this.element.hasClass('uk-open');
2720
2733
  }
2721
2734
 
2722
2735
  });
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -443,28 +443,40 @@
443
443
  addAction('link', '<a href="http://">$1</a>');
444
444
  addAction('image', '<img src="http://" alt="$1">');
445
445
 
446
- var listfn = function() {
446
+ var listfn = function(tag) {
447
447
  if (editor.getCursorMode() == 'html') {
448
448
 
449
- var cm = editor.editor,
450
- pos = cm.getDoc().getCursor(true),
451
- posend = cm.getDoc().getCursor(false);
449
+ tag = tag || 'ul';
450
+
451
+ var cm = editor.editor,
452
+ doc = cm.getDoc(),
453
+ pos = doc.getCursor(true),
454
+ posend = doc.getCursor(false),
455
+ im = CodeMirror.innerMode(cm.getMode(), cm.getTokenAt(cm.getCursor()).state),
456
+ inList = im && im.state && im.state.context && ['ul','ol'].indexOf(im.state.context.tagName) != -1;
452
457
 
453
458
  for (var i=pos.line; i<(posend.line+1);i++) {
454
459
  cm.replaceRange('<li>'+cm.getLine(i)+'</li>', { line: i, ch: 0 }, { line: i, ch: cm.getLine(i).length });
455
460
  }
456
461
 
457
- cm.setCursor({ line: posend.line, ch: cm.getLine(posend.line).length });
462
+ if (!inList) {
463
+ cm.replaceRange('<'+tag+'>'+"\n"+cm.getLine(pos.line), { line: pos.line, ch: 0 }, { line: pos.line, ch: cm.getLine(pos.line).length });
464
+ cm.replaceRange(cm.getLine((posend.line+1))+"\n"+'</'+tag+'>', { line: (posend.line+1), ch: 0 }, { line: (posend.line+1), ch: cm.getLine((posend.line+1)).length });
465
+ cm.setCursor({ line: posend.line+1, ch: cm.getLine(posend.line+1).length });
466
+ } else {
467
+ cm.setCursor({ line: posend.line, ch: cm.getLine(posend.line).length });
468
+ }
469
+
458
470
  cm.focus();
459
471
  }
460
472
  };
461
473
 
462
474
  editor.on('action.listUl', function() {
463
- listfn();
475
+ listfn('ul');
464
476
  });
465
477
 
466
478
  editor.on('action.listOl', function() {
467
- listfn();
479
+ listfn('ol');
468
480
  });
469
481
 
470
482
  editor.htmleditor.on('click', 'a[data-htmleditor-button="fullscreen"]', function() {
@@ -510,7 +522,7 @@
510
522
 
511
523
  init: function(editor) {
512
524
 
513
- var parser = editor.options.mdparser || marked || null;
525
+ var parser = editor.options.mdparser || window.marked || null;
514
526
 
515
527
  if (!parser) return;
516
528
 
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -510,7 +510,7 @@
510
510
 
511
511
  }
512
512
  });
513
-
513
+
514
514
  function getModal(lightbox) {
515
515
 
516
516
  if (modal) {
@@ -548,9 +548,17 @@
548
548
  modal.content.html('');
549
549
  });
550
550
 
551
+ var resizeCache = {w: window.innerWidth, h:window.innerHeight};
552
+
551
553
  UI.$win.on('load resize orientationchange', UI.Utils.debounce(function(e){
552
- if (modal.is(':visible') && !UI.Utils.isFullscreen()) modal.lightbox.fitSize();
553
- }.bind(this), 100));
554
+
555
+ if (resizeCache.w !== window.innerWidth && modal.is(':visible') && !UI.Utils.isFullscreen()) {
556
+ modal.lightbox.fitSize();
557
+ }
558
+
559
+ resizeCache = {w: window.innerWidth, h:window.innerHeight};
560
+
561
+ }, 100));
554
562
 
555
563
  modal.lightbox = lightbox;
556
564
 
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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
  */
@@ -130,7 +130,8 @@
130
130
 
131
131
  var onStartEvent = function(e) {
132
132
 
133
- var handle = UI.$(e.target);
133
+ var handle = UI.$(e.target),
134
+ link = handle.is('a[href]') ? handle:handle.parents('a[href]');
134
135
 
135
136
  if (e.target === $this.element[0]) {
136
137
  return;
@@ -161,6 +162,8 @@
161
162
 
162
163
  $this.delayMove = function(evt) {
163
164
 
165
+ link = false;
166
+
164
167
  evt.preventDefault();
165
168
  $this.dragStart(e);
166
169
  $this.trigger('start.uk.nestable', [$this]);
@@ -172,6 +175,15 @@
172
175
  $this.delayMove.y = parseInt(e.pageY, 10);
173
176
  $this.delayMove.threshold = $this.options.idlethreshold;
174
177
 
178
+ if (link.length && eEnd == 'touchend') {
179
+
180
+ $this.one(eEnd, function(){
181
+ if (link && link.attr('href').trim()) {
182
+ location.href = link.attr('href');
183
+ }
184
+ });
185
+ }
186
+
175
187
  e.preventDefault();
176
188
  };
177
189
 
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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
  */
@@ -20,7 +20,7 @@
20
20
 
21
21
  "use strict";
22
22
 
23
- var supportsTouch = ('ontouchstart' in window) || (window.DocumentTouch && document instanceof DocumentTouch),
23
+ var supportsTouch = ('ontouchstart' in window || 'MSGesture' in window) || (window.DocumentTouch && document instanceof DocumentTouch),
24
24
  draggingPlaceholder, currentlyDraggingElement, currentlyDraggingTarget, dragging, moving, clickedlink, delayIdle, touchedlists, moved, overElement;
25
25
 
26
26
  function closestSortable(ele) {
@@ -81,7 +81,6 @@
81
81
  if (delayIdle) {
82
82
 
83
83
  var src = e.originalEvent.targetTouches ? e.originalEvent.targetTouches[0] : e;
84
-
85
84
  if (Math.abs(src.pageX - delayIdle.pos.x) > delayIdle.threshold || Math.abs(src.pageY - delayIdle.pos.y) > delayIdle.threshold) {
86
85
  delayIdle.apply(src);
87
86
  }
@@ -173,12 +172,18 @@
173
172
 
174
173
  e.preventDefault();
175
174
 
176
- if (!supportsTouch && $link.length) {
175
+ if ($link.length) {
177
176
 
178
177
  $link.one('click', function(e){
179
178
  e.preventDefault();
180
- }).one('mouseup', function(){
181
- if(!moved) $link.trigger('click');
179
+ }).one('mouseup touchend', function(){
180
+
181
+ if (!moved) {
182
+ $link.trigger('click');
183
+ if (supportsTouch && $link.attr('href').trim()) {
184
+ location.href = $link.attr('href');
185
+ }
186
+ }
182
187
  });
183
188
  }
184
189
 
@@ -327,7 +332,7 @@
327
332
  delayIdle = {
328
333
 
329
334
  pos : { x:e.pageX, y:e.pageY },
330
- threshold : $this.options.handleClass ? 0 : $this.options.threshold,
335
+ threshold : $this.options.handleClass ? 1 : $this.options.threshold,
331
336
  apply : function(evt) {
332
337
 
333
338
  draggingPlaceholder = UI.$('<div class="'+([$this.options.draggingClass, $this.options.dragCustomClass].join(' '))+'"></div>').css({
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(UI) {
3
3
 
4
4
  "use strict";