Skip to content
This repository was archived by the owner on Sep 10, 2023. It is now read-only.

Commit 05dd271

Browse files
committed
Added config option for z-index. Fixes bugs with Twitter bootstrap modal dialog
1 parent 4ebf2c7 commit 05dd271

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jquery.tokeninput.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ var DEFAULT_SETTINGS = {
3131
deleteText: "×",
3232
animateDropdown: true,
3333
theme: null,
34+
zindex: 999,
3435
resultsFormatter: function(item){ return "<li>" + item[this.propertyToSearch]+ "</li>" },
3536
tokenFormatter: function(item) { return "<li><p>" + item[this.propertyToSearch] + "</p></li>" },
3637

@@ -674,7 +675,7 @@ $.TokenList = function (input, url_or_data, settings) {
674675
top: $(token_list).offset().top + $(token_list).outerHeight(),
675676
left: $(token_list).offset().left,
676677
width: $(token_list).outerWidth(),
677-
'z-index': 999
678+
'z-index': settings.zindex
678679
})
679680
.show();
680681
}

0 commit comments

Comments
 (0)