Skip to content

Commit

Permalink
On mobile use native dropdowns
Browse files Browse the repository at this point in the history
Fixes #31
  • Loading branch information
igor10k committed May 12, 2014
1 parent 6ae699b commit b990469
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# [ikSelect 1.0.1](http://igor10k.github.com/ikSelect/)
# [ikSelect 1.0.2](http://igor10k.github.com/ikSelect/)

ikSelect helps you stylize selects. Check the plugin's [page](http://igor10k.github.com/ikSelect/) for more info.

Expand Down
2 changes: 1 addition & 1 deletion examples.html
Expand Up @@ -5,7 +5,7 @@
<meta name="description" content="Stylize selects across all browsers with ease">
<meta name="keywords" content="select,stylize,jquery,javascript,ikselect">
<meta name="author" content="Igor Kozlov">
<title>ikSelect 1.0.1</title>
<title>ikSelect 1.0.2</title>
<link rel="stylesheet" href="//yandex.st/highlightjs/7.3/styles/tomorrow.min.css">
<link rel="stylesheet" href="css/style.css" media="all">
</head>
Expand Down
4 changes: 2 additions & 2 deletions index.html
Expand Up @@ -5,7 +5,7 @@
<meta name="description" content="Stylize selects across all browsers with ease">
<meta name="keywords" content="select,stylize,jquery,javascript,ikselect">
<meta name="author" content="Igor Kozlov">
<title>ikSelect 1.0.1</title>
<title>ikSelect 1.0.2</title>
<link rel="stylesheet" href="//yandex.st/highlightjs/7.3/styles/tomorrow.min.css">
<link rel="stylesheet" href="css/style.css" media="all">
</head>
Expand All @@ -16,7 +16,7 @@ <h1>
<a href="index.html">
ikSelect
</a>
<span>1.0.1</span>
<span>1.0.2</span>
</h1>

<ul class="header-links">
Expand Down
5 changes: 4 additions & 1 deletion js/jquery.ikSelect.js
@@ -1,4 +1,4 @@
/*! ikSelect 1.0.1
/*! ikSelect 1.0.2
Copyright (c) 2013 Igor Kozlov
http://igorkozlov.me */

Expand Down Expand Up @@ -63,6 +63,9 @@
$.browser = browser;
}

$.browser.mobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile/i.test(navigator.userAgent);
$.browser.operamini = Object.prototype.toString.call(window.operamini) === "[object OperaMini]";

function IkSelect(element, options) {
var dataOptions = {}; // parsed data- attributes

Expand Down
4 changes: 2 additions & 2 deletions js/jquery.ikSelect.min.js

Large diffs are not rendered by default.

0 comments on commit b990469

Please sign in to comment.