updated Uikit v2

This commit is contained in:
2017-11-12 02:33:10 +02:00
parent 7d27af5d59
commit 1cc40dbfe4
437 changed files with 9171 additions and 5797 deletions

View File

@ -1,4 +1,4 @@
/*! UIkit 2.25.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
/*! UIkit 2.27.4 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
/*
* Based on simplePagination - Copyright (c) 2012 Flavius Matis - http://flaviusmatis.github.com/simplePagination.js/ (MIT)
*/
@ -6,13 +6,13 @@
var component;
if (window.UIkit) {
component = addon(UIkit);
if (window.UIkit2) {
component = addon(UIkit2);
}
if (typeof define == "function" && define.amd) {
define("uikit-pagination", ["uikit"], function(){
return component || addon(UIkit);
if (typeof define == 'function' && define.amd) {
define('uikit-pagination', ['uikit'], function(){
return component || addon(UIkit2);
});
}
@ -39,11 +39,11 @@
// init code
UI.ready(function(context) {
UI.$("[data-uk-pagination]", context).each(function(){
UI.$('[data-uk-pagination]', context).each(function(){
var ele = UI.$(this);
if (!ele.data("pagination")) {
UI.pagination(ele, UI.Utils.options(ele.attr("data-uk-pagination")));
if (!ele.data('pagination')) {
UI.pagination(ele, UI.Utils.options(ele.attr('data-uk-pagination')));
}
});
});
@ -57,9 +57,9 @@
this.currentPage = this.options.currentPage;
this.halfDisplayed = this.options.displayedPages / 2;
this.on("click", "a[data-page]", function(e){
this.on('click', 'a[data-page]', function(e){
e.preventDefault();
$this.selectPage(UI.$(this).data("page"));
$this.selectPage(UI.$(this).data('page'));
});
this._render();