Explorar o código

Merge pull request #340 from 19Gerhard85/master

Another fix for: IE fires window.onbeforeunload event #330
Igor Vaynberg %!s(int64=12) %!d(string=hai) anos
pai
achega
d154146caf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -2019,7 +2019,7 @@
             var choice=$(
                     "<li class='select2-search-choice'>" +
                     "    <div></div>" +
-                    "    <a href='javascript:void(0)' class='select2-search-choice-close' tabindex='-1'></a>" +
+                    "    <a href='#' onclick='return false;' class='select2-search-choice-close' tabindex='-1'></a>" +
                     "</li>"),
                 id = this.id(data),
                 val = this.getVal(),