Skip to content

Commit

Permalink
CHG: publish v2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
farthinker committed Aug 1, 2016
1 parent e426d4e commit 33cf820
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

## V2.1.3 - 2016-08-01

* Fix touch event bug on mobile device.

## V2.1.2 - 2016-07-27

* `input.textField` will be set empty if `allowInput` option is false and no item is selected when it blurs.
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple_select",
"version": "2.1.2",
"version": "2.1.3",
"homepage": "https://github.com/mycolorway/simple-select",
"authors": [
"farthinker <[email protected]>"
Expand Down
7 changes: 5 additions & 2 deletions dist/simple-select.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* simple-select v2.1.2
* simple-select v2.1.3
* http://mycolorway.github.io/simple-select
*
* Copyright Mycolorway Design
Expand Down Expand Up @@ -1088,7 +1088,10 @@ SimpleSelect = (function(superClass) {

SimpleSelect.prototype._render = function() {
this.el.hide().data("simpleSelect", this);
return this.wrapper = $(SimpleSelect._tpl).data("simpleSelect", this).addClass(this.opts.cls).insertBefore(this.el);
this.wrapper = $(SimpleSelect._tpl).data("simpleSelect", this).addClass(this.opts.cls).insertBefore(this.el);
if (this.opts.remote) {
return this.wrapper.addClass('simple-select-remote');
}
};

SimpleSelect.prototype._bind = function() {
Expand Down
4 changes: 2 additions & 2 deletions dist/simple-select.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "simple-select",
"githubOwner": "mycolorway",
"version": "2.1.2",
"version": "2.1.3",
"description": "Autocomplete select component",
"homepage": "http://mycolorway.github.io/simple-select",
"repository": {
Expand Down
3 changes: 3 additions & 0 deletions src/simple-select.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ class SimpleSelect extends SimpleModule
.addClass(@opts.cls)
.insertBefore @el

if @opts.remote
@wrapper.addClass 'simple-select-remote'

_bind: ->
# data provider events
@dataProvider.on 'filter', (e, groups, value) =>
Expand Down
4 changes: 3 additions & 1 deletion styles/simple-select.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* simple-select v2.1.2
* simple-select v2.1.3
* http://mycolorway.github.io/simple-select
*
* Copyright Mycolorway Design
Expand Down Expand Up @@ -140,3 +140,5 @@
.simple-select .popover.loading .select-item,
.simple-select .popover.loading .select-group {
display: none; }
.simple-select.simple-select-remote .input .link-expand {
display: none; }
6 changes: 6 additions & 0 deletions styles/simple-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,10 @@ $height: 24px;
}
}
}

&.simple-select-remote {
.input .link-expand {
display: none;
}
}
}

0 comments on commit 33cf820

Please sign in to comment.