Updated the footable Lib.

This commit is contained in:
2016-03-19 03:51:35 +02:00
parent 1cad434a39
commit 3bc71a935c
801 changed files with 8543 additions and 3032 deletions

View File

@ -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";
@ -70,26 +70,29 @@
this.totoggle.css('animation-duration', this.options.duration+'ms');
if (this.totoggle.hasClass(this.options.cls)) {
this.totoggle.each(function(){
this.totoggle.toggleClass(this.options.cls);
var ele = UI.$(this);
this.totoggle.each(function(){
UI.Utils.animate(this, animations[0]).then(function(){
UI.$(this).css('animation-duration', '');
UI.Utils.checkDisplay(this);
if (ele.hasClass($this.options.cls)) {
ele.toggleClass($this.options.cls);
UI.Utils.animate(ele, animations[0]).then(function(){
ele.css('animation-duration', '');
UI.Utils.checkDisplay(ele);
});
});
} else {
} else {
this.totoggle.each(function(){
UI.Utils.animate(this, animations[1]+' uk-animation-reverse').then(function(){
UI.$(this).toggleClass($this.options.cls).css('animation-duration', '');
UI.Utils.checkDisplay(this);
}.bind(this));
});
}
ele.toggleClass($this.options.cls).css('animation-duration', '');
UI.Utils.checkDisplay(ele);
});
}
});
} else {
this.totoggle.toggleClass(this.options.cls);