Fix sloppy spacing when applying chzn-rtl
This commit is contained in:
parent
f1e1c559ea
commit
41831bb934
|
@ -63,7 +63,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' : ''),
|
"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) {
|
||||||
|
|
2
chosen/chosen.jquery.min.js
vendored
2
chosen/chosen.jquery.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -51,7 +51,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' : ''),
|
'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;
|
||||||
|
|
2
chosen/chosen.proto.min.js
vendored
2
chosen/chosen.proto.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -50,7 +50,7 @@ class Chosen
|
||||||
|
|
||||||
container_div = ($ "<div />", {
|
container_div = ($ "<div />", {
|
||||||
id: @container_id
|
id: @container_id
|
||||||
class: "chzn-container #{ if @is_rtl then 'chzn-rtl' else '' }"
|
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
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ class Chosen
|
||||||
|
|
||||||
container_props =
|
container_props =
|
||||||
'id': @container_id
|
'id': @container_id
|
||||||
'class': "chzn-container #{ if @is_rtl then 'chzn-rtl' else '' }"
|
'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
|
||||||
|
|
Loading…
Reference in a new issue