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.
- 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 +1 -1
- data/vendor/assets/javascripts/uikit/components/form-password.js +1 -1
- data/vendor/assets/javascripts/uikit/components/form-select.js +1 -1
- data/vendor/assets/javascripts/uikit/components/grid.js +1 -1
- data/vendor/assets/javascripts/uikit/components/htmleditor.js +1 -1
- data/vendor/assets/javascripts/uikit/components/lightbox.js +2 -2
- data/vendor/assets/javascripts/uikit/components/nestable.js +1 -1
- 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 +2 -2
- data/vendor/assets/javascripts/uikit/components/search.js +1 -1
- data/vendor/assets/javascripts/uikit/components/slider.js +11 -2
- 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 +10 -10
- data/vendor/assets/javascripts/uikit/components/sortable.js +1 -1
- 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 +67 -53
- 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 +3 -2
- data/vendor/assets/javascripts/uikit/core/modal.js +9 -6
- data/vendor/assets/javascripts/uikit/core/nav.js +1 -1
- data/vendor/assets/javascripts/uikit/core/offcanvas.js +6 -6
- data/vendor/assets/javascripts/uikit/core/scrollspy.js +1 -1
- data/vendor/assets/javascripts/uikit/core/smooth-scroll.js +1 -1
- data/vendor/assets/javascripts/uikit/core/switcher.js +1 -1
- 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 +18 -2
- data/vendor/assets/javascripts/uikit.js +113 -73
- 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 +1 -1
- data/vendor/assets/stylesheets/uikit/components/autocomplete.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/autocomplete.gradient.css +1 -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 +4 -1
- data/vendor/assets/stylesheets/uikit.css +4 -1
- data/vendor/assets/stylesheets/uikit.gradient.css +4 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eae24d19dc83f7226dff69af10369ca441660f6d
|
4
|
+
data.tar.gz: 70a336710c48981701378f1b8d36afcadef8e620
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c962edb997af62cd051f44f9f15539a87f32c5b5503129c7e38ffc0c3341af8b8a1e2e9404d8e6db6094f4c2c3f687558074140e109bad8b3899a477d58fdb1
|
7
|
+
data.tar.gz: a99e2b0746530cf8d3672ab473f1d057d9dd51e1eedad026a6dcb0ddb45d579685615d78477fd6d16da15d922961da88d5a002c780bd22b7c1f4b29232b580b0
|
data/README.md
CHANGED
data/lib/uikit2/rails/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.24.
|
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.
|
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.
|
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.
|
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.
|
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 ?
|
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
|
448
|
-
next.css('opacity', '').removeClass(dir
|
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.
|
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.
|
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.
|
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 ($.
|
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
|
-
|
625
|
+
document.addEventListener('DOMContentLoaded', function(){
|
622
626
|
|
623
|
-
|
627
|
+
var domReady = function() {
|
624
628
|
|
625
|
-
|
626
|
-
UI.domObserve('[data-uk-observe]');
|
627
|
-
});
|
629
|
+
UI.$body = UI.$('body');
|
628
630
|
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
});
|
631
|
+
UI.ready(function(context){
|
632
|
+
UI.domObserve('[data-uk-observe]');
|
633
|
+
});
|
633
634
|
|
634
|
-
|
635
|
+
UI.on('changed.uk.dom', function(e) {
|
636
|
+
UI.init(e.target);
|
637
|
+
UI.Utils.checkDisplay(e.target);
|
638
|
+
});
|
635
639
|
|
636
|
-
|
640
|
+
UI.trigger('beforeready.uk.dom');
|
637
641
|
|
638
|
-
|
639
|
-
requestAnimationFrame((function(){
|
642
|
+
UI.component.bootComponents();
|
640
643
|
|
641
|
-
|
644
|
+
// custom scroll observer
|
645
|
+
requestAnimationFrame((function(){
|
642
646
|
|
643
|
-
|
647
|
+
var memory = {x: window.pageXOffset, y:window.pageYOffset}, dir;
|
644
648
|
|
645
|
-
|
649
|
+
var fn = function(){
|
646
650
|
|
647
|
-
|
651
|
+
if (memory.x != window.pageXOffset || memory.y != window.pageYOffset) {
|
648
652
|
|
649
|
-
|
650
|
-
if (window.pageYOffset != memory.y) dir.y = window.pageYOffset > memory.y ? 1:-1;
|
653
|
+
dir = {x: 0 , y: 0};
|
651
654
|
|
652
|
-
|
653
|
-
|
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
|
-
|
657
|
-
|
658
|
+
memory = {
|
659
|
+
"dir": dir, "x": window.pageXOffset, "y": window.pageYOffset
|
660
|
+
};
|
658
661
|
|
659
|
-
|
660
|
-
|
662
|
+
UI.$doc.trigger('scrolling.uk.document', [memory]);
|
663
|
+
}
|
661
664
|
|
662
|
-
|
663
|
-
|
664
|
-
}
|
665
|
+
requestAnimationFrame(fn);
|
666
|
+
};
|
665
667
|
|
666
|
-
|
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
|
-
|
674
|
+
return fn;
|
669
675
|
|
670
|
-
|
676
|
+
})());
|
671
677
|
|
672
|
-
|
673
|
-
|
678
|
+
// run component init functions on dom
|
679
|
+
UI.trigger('domready.uk.dom');
|
674
680
|
|
675
|
-
|
681
|
+
if (UI.support.touch) {
|
676
682
|
|
677
|
-
|
678
|
-
|
683
|
+
// remove css hover rules for touch devices
|
684
|
+
// UI.Utils.removeCssRules(/\.uk-(?!navbar).*:hover/);
|
679
685
|
|
680
|
-
|
681
|
-
|
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
|
-
|
689
|
+
UI.$win.on('load orientationchange resize', UI.Utils.debounce((function(){
|
684
690
|
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
691
|
+
var fn = function() {
|
692
|
+
$('.uk-height-viewport').css('height', window.innerHeight);
|
693
|
+
return fn;
|
694
|
+
};
|
689
695
|
|
690
|
-
|
696
|
+
return fn();
|
691
697
|
|
692
|
-
|
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
|
-
|
712
|
+
return domReady;
|
697
713
|
|
698
|
-
|
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.
|
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
|
-
|
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.
|
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,
|
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
|
-
|
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
|
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.
|
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
|
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.$(
|
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="'+
|
121
|
+
target = UI.$('[name="'+link[0].hash.replace('#','')+'"]');
|
122
122
|
}
|
123
123
|
|
124
|
-
if (target.length &&
|
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.
|
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.
|