uikit2-rails 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/uikit2/rails/version.rb +1 -1
- data/vendor/assets/javascripts/uikit/components/accordion.js +1 -1
- data/vendor/assets/javascripts/uikit/components/autocomplete.js +1 -1
- data/vendor/assets/javascripts/uikit/components/datepicker.js +2 -2
- data/vendor/assets/javascripts/uikit/components/form-password.js +1 -1
- data/vendor/assets/javascripts/uikit/components/form-select.js +9 -2
- data/vendor/assets/javascripts/uikit/components/grid-parallax.js +1 -1
- data/vendor/assets/javascripts/uikit/components/grid.js +3 -3
- data/vendor/assets/javascripts/uikit/components/htmleditor.js +1 -1
- data/vendor/assets/javascripts/uikit/components/lightbox.js +28 -1
- data/vendor/assets/javascripts/uikit/components/nestable.js +5 -3
- data/vendor/assets/javascripts/uikit/components/notify.js +1 -1
- data/vendor/assets/javascripts/uikit/components/pagination.js +1 -1
- data/vendor/assets/javascripts/uikit/components/parallax.js +1 -1
- data/vendor/assets/javascripts/uikit/components/search.js +1 -1
- data/vendor/assets/javascripts/uikit/components/slider.js +1 -1
- data/vendor/assets/javascripts/uikit/components/slideset.js +1 -1
- data/vendor/assets/javascripts/uikit/components/slideshow-fx.js +1 -1
- data/vendor/assets/javascripts/uikit/components/slideshow.js +1 -1
- data/vendor/assets/javascripts/uikit/components/sortable.js +11 -14
- data/vendor/assets/javascripts/uikit/components/sticky.js +1 -1
- data/vendor/assets/javascripts/uikit/components/timepicker.js +1 -1
- data/vendor/assets/javascripts/uikit/components/tooltip.js +1 -1
- data/vendor/assets/javascripts/uikit/components/upload.js +1 -1
- data/vendor/assets/javascripts/uikit/core/alert.js +1 -1
- data/vendor/assets/javascripts/uikit/core/button.js +1 -1
- data/vendor/assets/javascripts/uikit/core/core.js +34 -12
- data/vendor/assets/javascripts/uikit/core/cover.js +1 -1
- data/vendor/assets/javascripts/uikit/core/dropdown.js +1 -1
- data/vendor/assets/javascripts/uikit/core/grid.js +10 -8
- data/vendor/assets/javascripts/uikit/core/modal.js +6 -2
- data/vendor/assets/javascripts/uikit/core/nav.js +1 -1
- data/vendor/assets/javascripts/uikit/core/offcanvas.js +1 -1
- data/vendor/assets/javascripts/uikit/core/scrollspy.js +2 -2
- data/vendor/assets/javascripts/uikit/core/smooth-scroll.js +1 -1
- data/vendor/assets/javascripts/uikit/core/switcher.js +1 -5
- data/vendor/assets/javascripts/uikit/core/tab.js +1 -1
- data/vendor/assets/javascripts/uikit/core/toggle.js +1 -1
- data/vendor/assets/javascripts/uikit/core/touch.js +1 -1
- data/vendor/assets/javascripts/uikit/core/utility.js +10 -6
- data/vendor/assets/javascripts/uikit.js +58 -30
- data/vendor/assets/stylesheets/uikit/components/accordion.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/accordion.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/accordion.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/autocomplete.almost-flat.css +6 -1
- data/vendor/assets/stylesheets/uikit/components/autocomplete.css +6 -1
- data/vendor/assets/stylesheets/uikit/components/autocomplete.gradient.css +6 -1
- data/vendor/assets/stylesheets/uikit/components/datepicker.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/datepicker.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/datepicker.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/dotnav.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/dotnav.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/dotnav.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-advanced.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-advanced.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-advanced.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-file.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-file.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-file.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-password.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-password.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-password.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-select.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-select.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-select.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/htmleditor.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/htmleditor.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/htmleditor.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/nestable.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/nestable.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/nestable.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/notify.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/notify.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/notify.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/placeholder.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/placeholder.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/placeholder.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/progress.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/progress.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/progress.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/search.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/search.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/search.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slidenav.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slidenav.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slidenav.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slider.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slider.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slider.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slideshow.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slideshow.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slideshow.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sortable.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sortable.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sortable.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sticky.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sticky.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sticky.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/tooltip.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/tooltip.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/tooltip.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/upload.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/upload.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/upload.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit.css +1 -1
- data/vendor/assets/stylesheets/uikit.gradient.css +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4587edf142552800d702aeb2624227b799687e7e
|
4
|
+
data.tar.gz: c67edf0075d41a93df7f2ca0d208b335c0a85559
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6206e5fa5748669105ec7ff9318b8b30bfaf7099108eec811f47528e68b9760724566b5306148ac2c0f27f77681e9c3f56f8496168a4a4aced2b97b5047e0bc
|
7
|
+
data.tar.gz: 660fe127a51737240ddbd01a50b6b401ccc3bbd7b46d512c8c81096af8c9ceb3772b2578639422ca2697c630b3b365b4ad21bba17efcf1a3427b4f97719e5fcf
|
data/README.md
CHANGED
data/lib/uikit2/rails/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.2 | 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
|
if (ele.is('[data-date]')) {
|
187
187
|
active.current = moment(ele.data("date"));
|
188
|
-
active.element.val(active.current.format(active.options.format)).trigger("change");
|
188
|
+
active.element.val(active.current.isValid() ? active.current.format(active.options.format) : null).trigger("change");
|
189
189
|
active.hide();
|
190
190
|
} else {
|
191
191
|
active.add((ele.hasClass("uk-datepicker-next") ? 1:-1), "months");
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(addon) {
|
3
3
|
|
4
4
|
var component;
|
@@ -51,7 +51,14 @@
|
|
51
51
|
var select = $this.select[0], fn = function(){
|
52
52
|
|
53
53
|
try {
|
54
|
-
$this.
|
54
|
+
if($this.options.target === 'input')
|
55
|
+
{
|
56
|
+
$this.target.val(select.options[select.selectedIndex].text);
|
57
|
+
}
|
58
|
+
else
|
59
|
+
{
|
60
|
+
$this.target.text(select.options[select.selectedIndex].text);
|
61
|
+
}
|
55
62
|
} catch(e) {}
|
56
63
|
|
57
64
|
$this.element[$this.select.val() ? 'addClass':'removeClass']($this.options.activeClass);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(addon) {
|
3
3
|
|
4
4
|
var component;
|
@@ -63,7 +63,7 @@
|
|
63
63
|
// filter
|
64
64
|
this.controls.on('click', '[data-uk-filter]', function(e){
|
65
65
|
e.preventDefault();
|
66
|
-
$this.filter(UI.$(this).
|
66
|
+
$this.filter(UI.$(this).attr('data-uk-filter'));
|
67
67
|
});
|
68
68
|
|
69
69
|
// sort
|
@@ -88,7 +88,7 @@
|
|
88
88
|
if ($this.element.is(":visible")) $this.updateLayout();
|
89
89
|
});
|
90
90
|
|
91
|
-
UI
|
91
|
+
UI.domObserve(this.element, function(e) {
|
92
92
|
$this.updateLayout();
|
93
93
|
});
|
94
94
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(addon) {
|
3
3
|
|
4
4
|
var component;
|
@@ -484,6 +484,33 @@
|
|
484
484
|
});
|
485
485
|
|
486
486
|
|
487
|
+
UIkit.plugin("lightbox", "iframe", {
|
488
|
+
|
489
|
+
init: function (lightbox) {
|
490
|
+
|
491
|
+
lightbox.on("showitem.uk.lightbox", function (e, data) {
|
492
|
+
|
493
|
+
var resolve = function (source, width, height) {
|
494
|
+
|
495
|
+
data.meta = {
|
496
|
+
'content': '<iframe class="uk-responsive-width" src="' + source + '" width="' + width + '" height="' + height + '"></iframe>',
|
497
|
+
'width': width,
|
498
|
+
'height': height
|
499
|
+
};
|
500
|
+
|
501
|
+
data.type = 'iframe';
|
502
|
+
|
503
|
+
data.promise.resolve();
|
504
|
+
};
|
505
|
+
|
506
|
+
if (data.type === 'iframe' || data.source.match(/\.(html|php)$/)) {
|
507
|
+
resolve(data.source, (lightbox.options.width || 800), (lightbox.options.height || 600));
|
508
|
+
}
|
509
|
+
});
|
510
|
+
|
511
|
+
}
|
512
|
+
});
|
513
|
+
|
487
514
|
function getModal(lightbox) {
|
488
515
|
|
489
516
|
if (modal) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.2 | 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
|
*/
|
@@ -236,10 +236,12 @@
|
|
236
236
|
item = {}, attribute,
|
237
237
|
sub = li.children(list.options._listClass);
|
238
238
|
|
239
|
-
for (var i = 0; i < li[0].attributes.length; i++) {
|
239
|
+
for (var i = 0, attr, val; i < li[0].attributes.length; i++) {
|
240
240
|
attribute = li[0].attributes[i];
|
241
241
|
if (attribute.name.indexOf('data-') === 0) {
|
242
|
-
|
242
|
+
attr = attribute.name.substr(5);
|
243
|
+
val = UI.Utils.str2json(attribute.value);
|
244
|
+
item[attr] = (val || attribute.value=='false' || attribute.value=='0') ? val:attribute.value;
|
243
245
|
}
|
244
246
|
}
|
245
247
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.2 | 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.
|
1
|
+
/*! UIkit 2.26.2 | 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
|
*/
|
@@ -166,6 +166,11 @@
|
|
166
166
|
return;
|
167
167
|
}
|
168
168
|
|
169
|
+
if ($this.options.handleClass) {
|
170
|
+
var handle = $target.hasClass($this.options.handleClass) ? $target : $target.closest('.'+$this.options.handleClass, $this.element);
|
171
|
+
if (!handle.length) return;
|
172
|
+
}
|
173
|
+
|
169
174
|
e.preventDefault();
|
170
175
|
|
171
176
|
if (!supportsTouch && $link.length) {
|
@@ -301,16 +306,6 @@
|
|
301
306
|
return;
|
302
307
|
}
|
303
308
|
|
304
|
-
if ($this.options.handleClass) {
|
305
|
-
|
306
|
-
var handle = target.hasClass($this.options.handleClass) ? target : target.closest('.'+$this.options.handleClass, $this.element);
|
307
|
-
|
308
|
-
if (!handle.length) {
|
309
|
-
//e.preventDefault();
|
310
|
-
return;
|
311
|
-
}
|
312
|
-
}
|
313
|
-
|
314
309
|
if (target.is('.'+$this.options.noDragClass) || target.closest('.'+$this.options.noDragClass).length) {
|
315
310
|
return;
|
316
311
|
}
|
@@ -332,7 +327,7 @@
|
|
332
327
|
delayIdle = {
|
333
328
|
|
334
329
|
pos : { x:e.pageX, y:e.pageY },
|
335
|
-
threshold : $this.options.threshold,
|
330
|
+
threshold : $this.options.handleClass ? 0 : $this.options.threshold,
|
336
331
|
apply : function(evt) {
|
337
332
|
|
338
333
|
draggingPlaceholder = UI.$('<div class="'+([$this.options.draggingClass, $this.options.dragCustomClass].join(' '))+'"></div>').css({
|
@@ -602,10 +597,12 @@
|
|
602
597
|
|
603
598
|
this.element.children().each(function(j, child) {
|
604
599
|
item = {};
|
605
|
-
for (var i = 0; i < child.attributes.length; i++) {
|
600
|
+
for (var i = 0, attr, val; i < child.attributes.length; i++) {
|
606
601
|
attribute = child.attributes[i];
|
607
602
|
if (attribute.name.indexOf('data-') === 0) {
|
608
|
-
|
603
|
+
attr = attribute.name.substr(5);
|
604
|
+
val = UI.Utils.str2json(attribute.value);
|
605
|
+
item[attr] = (val || attribute.value=='false' || attribute.value=='0') ? val:attribute.value;
|
609
606
|
}
|
610
607
|
}
|
611
608
|
data.push(item);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.2 | 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.
|
47
|
+
UI.version = '2.26.2';
|
48
48
|
|
49
49
|
UI.noConflict = function() {
|
50
50
|
// restore UIkit version
|
@@ -594,7 +594,7 @@
|
|
594
594
|
var observer = new UI.support.mutationobserver(UI.Utils.debounce(function(mutations) {
|
595
595
|
fn.apply(element, []);
|
596
596
|
$element.trigger('changed.uk.dom');
|
597
|
-
}, 50));
|
597
|
+
}, 50), {childList: true, subtree: true});
|
598
598
|
|
599
599
|
// pass in the target node, as well as the observer options
|
600
600
|
observer.observe(element, { childList: true, subtree: true });
|
@@ -627,15 +627,6 @@
|
|
627
627
|
|
628
628
|
UI.$body = UI.$('body');
|
629
629
|
|
630
|
-
UI.ready(function(context){
|
631
|
-
UI.domObserve('[data-uk-observe]');
|
632
|
-
});
|
633
|
-
|
634
|
-
UI.on('changed.uk.dom', function(e) {
|
635
|
-
UI.init(e.target);
|
636
|
-
UI.Utils.checkDisplay(e.target);
|
637
|
-
});
|
638
|
-
|
639
630
|
UI.trigger('beforeready.uk.dom');
|
640
631
|
|
641
632
|
UI.component.bootComponents();
|
@@ -709,6 +700,37 @@
|
|
709
700
|
|
710
701
|
// mark that domready is left behind
|
711
702
|
UI.domready = true;
|
703
|
+
|
704
|
+
// auto init js components
|
705
|
+
if (UI.support.mutationobserver) {
|
706
|
+
|
707
|
+
var initFn = UI.Utils.debounce(function(){
|
708
|
+
requestAnimationFrame(function(){ UI.init(document.body);});
|
709
|
+
}, 10);
|
710
|
+
|
711
|
+
(new UI.support.mutationobserver(function(mutations) {
|
712
|
+
|
713
|
+
var init = false;
|
714
|
+
|
715
|
+
mutations.every(function(mutation){
|
716
|
+
|
717
|
+
if (mutation.type != 'childList') return true;
|
718
|
+
|
719
|
+
for (var i = 0, node; i < mutation.addedNodes.length; ++i) {
|
720
|
+
|
721
|
+
node = mutation.addedNodes[i];
|
722
|
+
|
723
|
+
if (node.outerHTML && node.outerHTML.indexOf('data-uk-') !== -1) {
|
724
|
+
return (init = true) && false;
|
725
|
+
}
|
726
|
+
}
|
727
|
+
return true;
|
728
|
+
});
|
729
|
+
|
730
|
+
if (init) initFn();
|
731
|
+
|
732
|
+
})).observe(document.body, {childList: true, subtree: true});
|
733
|
+
}
|
712
734
|
};
|
713
735
|
|
714
736
|
if (document.readyState == 'complete' || document.readyState == 'interactive') {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(UI) {
|
3
3
|
|
4
4
|
"use strict";
|
@@ -10,7 +10,8 @@
|
|
10
10
|
defaults: {
|
11
11
|
"target" : false,
|
12
12
|
"row" : true,
|
13
|
-
"ignorestacked" : false
|
13
|
+
"ignorestacked" : false,
|
14
|
+
"observe" : false
|
14
15
|
},
|
15
16
|
|
16
17
|
boot: function() {
|
@@ -40,7 +41,7 @@
|
|
40
41
|
UI.$win.on('load resize orientationchange', (function() {
|
41
42
|
|
42
43
|
var fn = function() {
|
43
|
-
$this.match();
|
44
|
+
if ($this.element.is(":visible")) $this.match();
|
44
45
|
};
|
45
46
|
|
46
47
|
UI.$(function() { fn(); });
|
@@ -48,11 +49,12 @@
|
|
48
49
|
return UI.Utils.debounce(fn, 50);
|
49
50
|
})());
|
50
51
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
52
|
+
if (this.options.observe) {
|
53
|
+
|
54
|
+
UI.domObserve(this.element, function(e) {
|
55
|
+
if ($this.element.is(":visible")) $this.match();
|
56
|
+
});
|
57
|
+
}
|
56
58
|
|
57
59
|
this.on("display.uk.check", function(e) {
|
58
60
|
if(this.element.is(":visible")) this.match();
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(UI) {
|
3
3
|
|
4
4
|
"use strict";
|
@@ -51,7 +51,11 @@
|
|
51
51
|
if (target[0] == $this.element[0] && $this.options.bgclose) {
|
52
52
|
$this.hide();
|
53
53
|
}
|
54
|
-
})
|
54
|
+
});
|
55
|
+
|
56
|
+
UI.domObserve(this.element, function(e) {
|
57
|
+
$this.resize();
|
58
|
+
});
|
55
59
|
},
|
56
60
|
|
57
61
|
toggle: function() {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(UI) {
|
3
3
|
|
4
4
|
"use strict";
|
@@ -171,7 +171,7 @@
|
|
171
171
|
scrollTop = $win.scrollTop(),
|
172
172
|
target = (function(){
|
173
173
|
for(var i=0; i< inviews.length;i++){
|
174
|
-
if(inviews[i].offset().top
|
174
|
+
if(inviews[i].offset().top >= scrollTop){
|
175
175
|
return inviews[i];
|
176
176
|
}
|
177
177
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(UI) {
|
3
3
|
|
4
4
|
"use strict";
|
@@ -99,10 +99,6 @@
|
|
99
99
|
// Init ARIA for toggles
|
100
100
|
toggles.not(active).attr('aria-expanded', 'false');
|
101
101
|
active.attr('aria-expanded', 'true');
|
102
|
-
|
103
|
-
this.on('changed.uk.dom', function() {
|
104
|
-
$this.connect = UI.$($this.options.connect);
|
105
|
-
});
|
106
102
|
}
|
107
103
|
|
108
104
|
},
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.2 | 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.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(UI) {
|
3
3
|
|
4
4
|
"use strict";
|
@@ -9,7 +9,8 @@
|
|
9
9
|
|
10
10
|
defaults: {
|
11
11
|
cls: 'uk-margin-small-top',
|
12
|
-
rowfirst: false
|
12
|
+
rowfirst: false,
|
13
|
+
observe: false
|
13
14
|
},
|
14
15
|
|
15
16
|
boot: function() {
|
@@ -46,14 +47,17 @@
|
|
46
47
|
return UI.Utils.debounce(fn, 20);
|
47
48
|
})());
|
48
49
|
|
49
|
-
UI.$html.on("changed.uk.dom", function(e) {
|
50
|
-
$this.process();
|
51
|
-
});
|
52
|
-
|
53
50
|
this.on("display.uk.check", function(e) {
|
54
51
|
if (this.element.is(":visible")) this.process();
|
55
52
|
}.bind(this));
|
56
53
|
|
54
|
+
if (this.options.observe) {
|
55
|
+
|
56
|
+
UI.domObserve(this.element, function(e) {
|
57
|
+
if ($this.element.is(":visible")) $this.process();
|
58
|
+
});
|
59
|
+
}
|
60
|
+
|
57
61
|
stacks.push(this);
|
58
62
|
},
|
59
63
|
|