Skip to content

Commit

Permalink
Added a few more missing semicolons and ===.
Browse files Browse the repository at this point in the history
  • Loading branch information
straydogstudio committed May 29, 2012
1 parent deec41b commit 4640dce
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/assets/javascripts/best_in_place.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ BestInPlaceEditor.prototype = {
} else if (this.formType == "checkbox") {
editor.element.html(this.getValue() ? this.values[1] : this.values[0]);
} else {
editor.element.html(this.getValue() != "" ? this.getValue() : this.nil);
editor.element.html(this.getValue() !== "" ? this.getValue() : this.nil);
}
editor.element.trigger(jQuery.Event("best_in_place:update"));
},
Expand Down Expand Up @@ -256,23 +256,23 @@ BestInPlaceEditor.forms = {
activateForm : function() {
var output = '<form class="form_in_place" action="javascript:void(0)" style="display:inline;">';
output += '<input type="text" name="'+ this.attributeName + '" value="' + this.sanitizeValue(this.display_value) + '"';
if (this.inner_class != null) {
if (this.inner_class !== null) {
output += ' class="' + this.inner_class + '"';
}
output += '>';
if (this.okButton) {
output += '<input type="submit" value="' + this.okButton + '" />'
output += '<input type="submit" value="' + this.okButton + '" />';
}
if (this.cancelButton) {
output += '<input type="button" value="' + this.cancelButton + '" />'
output += '<input type="button" value="' + this.cancelButton + '" />';
}
output += '</form>';
this.element.html(output);
this.setHtmlAttributes();
this.element.find("input[type='text']")[0].select();
this.element.find("form").bind('submit', {editor: this}, BestInPlaceEditor.forms.input.submitHandler);
if (this.cancelButton) {
this.element.find("input[type='button']").bind('click', {editor: this}, BestInPlaceEditor.forms.input.cancelButtonHandler)
this.element.find("input[type='button']").bind('click', {editor: this}, BestInPlaceEditor.forms.input.cancelButtonHandler);
}
this.element.find("input[type='text']").bind('blur', {editor: this}, BestInPlaceEditor.forms.input.inputBlurHandler);
this.element.find("input[type='text']").bind('keyup', {editor: this}, BestInPlaceEditor.forms.input.keyupHandler);
Expand Down Expand Up @@ -330,10 +330,10 @@ BestInPlaceEditor.forms = {
var that = this,
output = '<form class="form_in_place" action="javascript:void(0)" style="display:inline;">';
output += '<input type="text" name="'+ this.attributeName + '" value="' + this.sanitizeValue(this.display_value) + '"';
if (this.inner_class != null) {
if (this.inner_class !== null) {
output += ' class="' + this.inner_class + '"';
}
output += '></form>'
output += '></form>';
this.element.html(output);
this.setHtmlAttributes();
this.element.find('input')[0].select();
Expand Down

0 comments on commit 4640dce

Please sign in to comment.