Updated the footable Lib.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
||||
/*! UIkit 2.25.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
||||
(function(UI) {
|
||||
|
||||
"use strict";
|
||||
@ -10,7 +10,8 @@
|
||||
'connect' : false,
|
||||
'active' : 0,
|
||||
'animation' : false,
|
||||
'duration' : 200
|
||||
'duration' : 200,
|
||||
'swiping' : true
|
||||
},
|
||||
|
||||
boot: function() {
|
||||
@ -35,7 +36,7 @@
|
||||
|
||||
this.current = false;
|
||||
|
||||
this.on("click.uikit.tab", this.options.target, function(e) {
|
||||
this.on("click.uk.tab", this.options.target, function(e) {
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
@ -72,7 +73,7 @@
|
||||
if (this.element.hasClass("uk-tab-bottom")) this.responsivetab.dropdown.addClass("uk-dropdown-up");
|
||||
|
||||
// handle click
|
||||
this.responsivetab.lst.on('click.uikit.tab', 'a', function(e) {
|
||||
this.responsivetab.lst.on('click.uk.tab', 'a', function(e) {
|
||||
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
@ -91,15 +92,16 @@
|
||||
// init UIkit components
|
||||
if (this.options.connect) {
|
||||
this.switcher = UI.switcher(this.element, {
|
||||
"toggle" : ">li:not(.uk-tab-responsive)",
|
||||
"connect" : this.options.connect,
|
||||
"active" : this.options.active,
|
||||
"animation" : this.options.animation,
|
||||
"duration" : this.options.duration
|
||||
'toggle' : '>li:not(.uk-tab-responsive)',
|
||||
'connect' : this.options.connect,
|
||||
'active' : this.options.active,
|
||||
'animation' : this.options.animation,
|
||||
'duration' : this.options.duration,
|
||||
'swiping' : this.options.swiping
|
||||
});
|
||||
}
|
||||
|
||||
UI.dropdown(this.responsivetab, {"mode": "click"});
|
||||
UI.dropdown(this.responsivetab, {"mode": "click", "preventflip": "y"});
|
||||
|
||||
// init
|
||||
$this.trigger("change.uk.tab", [this.element.find(this.options.target).not('.uk-tab-responsive').filter('.uk-active')]);
|
||||
|
Reference in New Issue
Block a user