fixes #1263
This commit is contained in:
parent
d668ae76d0
commit
e21018147c
@ -99,7 +99,7 @@ Version: @@ver@@ Timestamp: @@timestamp@@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.select2-container .select2-choice abbr {
|
.select2-container .select2-choice abbr {
|
||||||
display: inline-block;
|
display: none;
|
||||||
width: 12px;
|
width: 12px;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -114,6 +114,11 @@ Version: @@ver@@ Timestamp: @@timestamp@@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.select2-container.select2-allowclear .select2-choice abbr {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
.select2-container .select2-choice abbr:hover {
|
.select2-container .select2-choice abbr:hover {
|
||||||
background-position: right -11px;
|
background-position: right -11px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -1693,7 +1693,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
"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)' onclick='return false;' class='select2-choice' tabindex='-1'>",
|
||||||
" <span> </span><abbr class='select2-search-choice-close select2-display-none'></abbr>",
|
" <span> </span><abbr class='select2-search-choice-close'></abbr>",
|
||||||
" <div><b></b></div>" ,
|
" <div><b></b></div>" ,
|
||||||
"</a>",
|
"</a>",
|
||||||
"<input class='select2-focusser select2-offscreen' type='text'/>",
|
"<input class='select2-focusser select2-offscreen' type='text'/>",
|
||||||
@ -2005,7 +2005,6 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
this.selection.addClass("select2-default");
|
this.selection.addClass("select2-default");
|
||||||
|
|
||||||
this.container.removeClass("select2-allowclear");
|
this.container.removeClass("select2-allowclear");
|
||||||
this.selection.find("abbr").hide();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -2084,7 +2083,6 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
|
|
||||||
if (this.opts.allowClear && this.getPlaceholder() !== undefined) {
|
if (this.opts.allowClear && this.getPlaceholder() !== undefined) {
|
||||||
this.container.addClass("select2-allowclear");
|
this.container.addClass("select2-allowclear");
|
||||||
this.selection.find("abbr").show();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user