Skip to content

Commit

Permalink
fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
A1Gard committed Mar 9, 2019
1 parent 6a807ce commit c348d78
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ The event you can use for tree select
### onOpen
Triggered when opening select input
sample:
```
```javascript
$("#tree-select").treeSelect({
onOpen: function(){
alert('opened');
Expand All @@ -140,7 +140,7 @@ The event you can use for tree select
### onClose
Triggered when closing select input
sample:
```
```javascript
$("#tree-select").treeSelect({
onClose: function(){
alert('closed');
Expand All @@ -151,7 +151,7 @@ The event you can use for tree select
### onSelect
Triggered when selecting select input
sample:
```
```javascript
$("#tree-select").treeSelect({
onSelect: function(selected){
console.log(selected);
Expand All @@ -162,7 +162,7 @@ The event you can use for tree select
### onChange
Triggered when change select input value
sample:
```
```javascript
$("#tree-select").treeSelect({
onSelect: function(oldVal,newVal){
console.log(oldVal,newVal);
Expand All @@ -189,4 +189,4 @@ See `demo/index.html` for demo.

you can see online demo (example) here:

http://4xmen.ir/github_example/tree-select/demo/
http://4xmen.ir/github_example/tree-select/demo/
3 changes: 2 additions & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<title>
x-tree-select (tree select) - Demo
</title>
<meta charset="UTF-8">
<!--load assetes-->
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="../src/x-tree-select.js"></script>
Expand Down Expand Up @@ -348,4 +349,4 @@ <h4>

</body>

</html>
</html>
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"optionalDependencies": {},
"repository": {
"type": "git",
"url": "git+https://github.com/4xmen/tree-select.git"
"url": "git+https://github.com/4xmen/x-tree-select.git"
},
"version": "1.3.0"
"version": "1.3.1"
}

0 comments on commit c348d78

Please sign in to comment.