Skip to content

Commit 2e0fb41

Browse files
committed
Small code review
1 parent 0a328ed commit 2e0fb41

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ $('.tagsinput#tags').tagsInput({
113113
});
114114
```
115115

116+
## About the author
117+
118+
* [underovsky.com](http://underovsky.com)
119+
* [twitter.com/underovsky](https://twitter.com/underovsky)
120+
* [facebook.com/underovsky](https://facebook.com/underovsky)
121+
116122
## License
117123

118124
The MIT License (MIT)

dist/jquery.tagsinput-revisited.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
<script type="text/javascript">
6161
$(function() {
62-
$('#form-tags-1').tagsInput();
62+
$('#form-tags-1').tagsInput({interactive: false});
6363

6464
$('#form-tags-2').tagsInput({
6565
'onAddTag': function($el, value) {

src/jquery.tagsinput-revisited.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
f.call(this, value);
5151
}
5252

53-
if(callbacks[id] && callbacks[id]['onChange']) {
53+
if (callbacks[id] && callbacks[id]['onChange']) {
5454
var i = tagslist.length;
5555
var f = callbacks[id]['onChange'];
5656
f.call(this, $(this), tagslist[i - 1]);
@@ -171,8 +171,8 @@
171171
$.fn.tagsInput.importTags($(data.real_input), $(data.real_input).val());
172172
}
173173

174-
// Stop here if interactive options is not chosen
175-
if (!settings.interactive) return this;
174+
// Stop here if interactive option is not chosen
175+
if (!settings.interactive) return;
176176

177177
$(data.fake_input).val('');
178178
$(data.fake_input).data('pasted', false);

0 commit comments

Comments
 (0)