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,15 +1,15 @@
/*! 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 */
(function(addon) {
var component;
if (window.UIkit) {
component = addon(UIkit);
if (window.UIkit2) {
component = addon(UIkit2);
}
if (typeof define == "function" && define.amd) {
define("uikit-search", ["uikit"], function(){
return component || addon(UIkit);
if (typeof define == 'function' && define.amd) {
define('uikit-search', ['uikit'], function(){
return component || addon(UIkit2);
});
}
@ -47,7 +47,7 @@
var opts = this.options;
this.dropdown.append(this.template({"items":data.results || [], "msgResultsHeader":opts.msgResultsHeader, "msgMoreResults": opts.msgMoreResults, "msgNoResults": opts.msgNoResults}));
this.dropdown.append(this.template({items:data.results || [], msgResultsHeader:opts.msgResultsHeader, msgMoreResults: opts.msgMoreResults, msgNoResults: opts.msgNoResults}));
this.show();
}
},
@ -55,11 +55,11 @@
boot: function() {
// init code
UI.$html.on("focus.search.uikit", "[data-uk-search]", function(e) {
UI.$html.on('focus.search.uikit', '[data-uk-search]', function(e) {
var ele =UI.$(this);
if (!ele.data("search")) {
UI.search(ele, UI.Utils.options(ele.attr("data-uk-search")));
if (!ele.data('search')) {
UI.search(ele, UI.Utils.options(ele.attr('data-uk-search')));
}
});
},
@ -72,10 +72,10 @@
this.autocomplete.dropdown.addClass('uk-dropdown-search');
this.autocomplete.input.on("keyup", function(){
$this.element[$this.autocomplete.input.val() ? "addClass":"removeClass"]("uk-active");
$this.element[$this.autocomplete.input.val() ? 'addClass':'removeClass']('uk-active');
}).closest("form").on("reset", function(){
$this.value="";
$this.element.removeClass("uk-active");
$this.value = '';
$this.element.removeClass('uk-active');
});
this.on('selectitem.uk.autocomplete', function(e, data) {
@ -86,7 +86,7 @@
}
});
this.element.data("search", this);
this.element.data('search', this);
}
});
});