Fix sloppy spacing when applying chzn-rtl

This commit is contained in:
Patrick Filler 2011-09-22 13:02:25 -05:00
parent f1e1c559ea
commit 41831bb934
6 changed files with 6 additions and 6 deletions

View file

@ -63,7 +63,7 @@
this.default_text = this.form_field_jq.data('placeholder') ? this.form_field_jq.data('placeholder') : this.default_text_default;
container_div = $("<div />", {
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;'
});
if (this.is_multiple) {

File diff suppressed because one or more lines are too long

View file

@ -51,7 +51,7 @@
this.f_width = this.form_field.getStyle("width") ? parseInt(this.form_field.getStyle("width"), 10) : this.form_field.getWidth();
container_props = {
'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'
};
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

@ -50,7 +50,7 @@ class Chosen
container_div = ($ "<div />", {
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
})

View file

@ -47,7 +47,7 @@ class Chosen
container_props =
'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
@default_text = if @form_field.readAttribute 'data-placeholder' then @form_field.readAttribute 'data-placeholder' else @default_text_default