Skip to content
Browse files

Remove inline onclick handlers

  • Loading branch information...
1 parent 7ee6446 commit 7f9c43f62c9a3db397422a1df52382d25151ea9e @timoxley committed Sep 17, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 select2.js
View
6 select2.js
@@ -1389,7 +1389,7 @@
var container = $("<div></div>", {
"class": "select2-container"
}).html([
- " <a href='#' onclick='return false;' class='select2-choice'>",
+ " <a href='#' class='select2-choice'>",
" <span></span><abbr class='select2-search-choice-close' style='display:none;'></abbr>",
" <div><b></b></div>" ,
"</a>",
@@ -1488,7 +1488,7 @@
}
}
}));
-
+ this.selection.bind("click", killEvent)
this.search.bind("focus", this.bind(function() {
this.selection.attr("tabIndex", "-1");
}));
@@ -2052,7 +2052,7 @@
var choice=$(
"<li class='select2-search-choice'>" +
" <div></div>" +
- " <a href='#' onclick='return false;' class='select2-search-choice-close' tabindex='-1'></a>" +
+ " <a href='#' class='select2-search-choice-close' tabindex='-1'></a>" +
"</li>"),
id = this.id(data),
val = this.getVal(),

0 comments on commit 7f9c43f

Please sign in to comment.
Something went wrong with that request. Please try again.