1
0
mirror of synced 2024-11-26 14:56:07 +03:00

Merge pull request #2151 from dhardtke/csp_fixes

fix select2 csp errors / warnings
This commit is contained in:
Kevin Brown 2014-02-27 14:18:00 -05:00
commit ec97c818c8

View File

@ -1858,7 +1858,7 @@ the specific language governing permissions and limitations under the Apache Lic
var container = $(document.createElement("div")).attr({ var container = $(document.createElement("div")).attr({
"class": "select2-container" "class": "select2-container"
}).html([ }).html([
"<a href='javascript:void(0)' onclick='return false;' class='select2-choice' tabindex='-1'>", "<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>",
" <span class='select2-chosen'>&nbsp;</span><abbr class='select2-search-choice-close'></abbr>", " <span class='select2-chosen'>&nbsp;</span><abbr class='select2-search-choice-close'></abbr>",
" <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>", " <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>",
"</a>", "</a>",
@ -2921,7 +2921,7 @@ the specific language governing permissions and limitations under the Apache Lic
enabledItem = $( enabledItem = $(
"<li class='select2-search-choice'>" + "<li class='select2-search-choice'>" +
" <div></div>" + " <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>"), "</li>"),
disabledItem = $( disabledItem = $(
"<li class='select2-search-choice select2-locked'>" + "<li class='select2-search-choice select2-locked'>" +