This commit is contained in:
Allen Bargi 2011-08-03 07:32:14 +02:00
parent 0812bc3d64
commit 8b223ec328
7 changed files with 6 additions and 7 deletions

View file

@ -60,7 +60,6 @@ select.chzn-select {
white-space: nowrap; white-space: nowrap;
-o-text-overflow: ellipsis; -o-text-overflow: ellipsis;
-ms-text-overflow: ellipsis; -ms-text-overflow: ellipsis;
-moz-binding: url('/xml/ellipsis.xml#ellipsis');
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.chzn-container-single .chzn-single div { .chzn-container-single .chzn-single div {

View file

@ -55,7 +55,7 @@
this.default_text = this.form_field_jq.data('placeholder') ? this.form_field_jq.data('placeholder') : this.default_text_default; this.default_text = this.form_field_jq.data('placeholder') ? this.form_field_jq.data('placeholder') : this.default_text_default;
container_div = $("<div />", { container_div = $("<div />", {
id: this.container_id, id: this.container_id,
"class": "chzn-container " + (this.is_rtl ? ' chzn-rtl' : void 0), "class": "chzn-container " + (this.is_rtl ? 'chzn-rtl' : ''),
style: 'width: ' + this.f_width + 'px;' style: 'width: ' + this.f_width + 'px;'
}); });
if (this.is_multiple) { if (this.is_multiple) {

File diff suppressed because one or more lines are too long

View file

@ -46,7 +46,7 @@
this.f_width = this.form_field.getStyle("width") ? parseInt(this.form_field.getStyle("width"), 10) : this.form_field.getWidth(); this.f_width = this.form_field.getStyle("width") ? parseInt(this.form_field.getStyle("width"), 10) : this.form_field.getWidth();
container_props = { container_props = {
'id': this.container_id, 'id': this.container_id,
'class': "chzn-container " + (this.is_rtl ? ' chzn-rtl' : void 0), 'class': "chzn-container " + (this.is_rtl ? 'chzn-rtl' : ''),
'style': 'width: ' + this.f_width + 'px' 'style': 'width: ' + this.f_width + 'px'
}; };
this.default_text = this.form_field.readAttribute('data-placeholder') ? this.form_field.readAttribute('data-placeholder') : this.default_text_default; this.default_text = this.form_field.readAttribute('data-placeholder') ? this.form_field.readAttribute('data-placeholder') : this.default_text_default;

File diff suppressed because one or more lines are too long

View file

@ -48,7 +48,7 @@ class Chosen
container_div = ($ "<div />", { container_div = ($ "<div />", {
id: @container_id id: @container_id
class: "chzn-container #{' chzn-rtl' if @is_rtl}" class: "chzn-container #{ if @is_rtl then 'chzn-rtl' else '' }"
style: 'width: ' + (@f_width) + 'px;' #use parens around @f_width so coffeescript doesn't think + ' px' is a function parameter style: 'width: ' + (@f_width) + 'px;' #use parens around @f_width so coffeescript doesn't think + ' px' is a function parameter
}) })

View file

@ -44,7 +44,7 @@ class Chosen
container_props = container_props =
'id': @container_id 'id': @container_id
'class': "chzn-container #{' chzn-rtl' if @is_rtl}" 'class': "chzn-container #{ if @is_rtl then 'chzn-rtl' else '' }"
'style': 'width: ' + (@f_width) + 'px' #use parens around @f_width so coffeescript doesn't think + ' px' is a function parameter 'style': 'width: ' + (@f_width) + 'px' #use parens around @f_width so coffeescript doesn't think + ' px' is a function parameter
@default_text = if @form_field.readAttribute 'data-placeholder' then @form_field.readAttribute 'data-placeholder' else @default_text_default @default_text = if @form_field.readAttribute 'data-placeholder' then @form_field.readAttribute 'data-placeholder' else @default_text_default