1
0
mirror of synced 2025-02-09 16:49:24 +03:00
This commit is contained in:
Igor Vaynberg 2013-05-06 20:26:30 -07:00
parent d668ae76d0
commit e21018147c
2 changed files with 7 additions and 4 deletions

View File

@ -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;

View File

@ -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>&nbsp;</span><abbr class='select2-search-choice-close select2-display-none'></abbr>", " <span>&nbsp;</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();
} }
}, },