Skip to content

Commit

Permalink
Make JSLint happy.
Browse files Browse the repository at this point in the history
Patch by olleolleolle ( http://github.com/olleolleolle )
  • Loading branch information
tuupola committed Mar 31, 2009
1 parent a6b805d commit 4e159cb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions jquery.jeditable.ajaxupload.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Ajaxupload for Jeditable
*
* Copyright (c) 2008 Mika Tuupola
* Copyright (c) 2008-2009 Mika Tuupola
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
Expand Down Expand Up @@ -44,7 +44,7 @@ $.editable.addInputType('ajaxupload', {
error: function (data, status, e) {
alert(e);
}
})
});
return(false);
});
}
Expand Down
2 changes: 1 addition & 1 deletion jquery.jeditable.datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $.editable.addInputType('datepicker', {
plugin : function(settings, original) {
/* Workaround for missing parentNode in IE */
var form = this;
settings.onblur = 'cancel'
settings.onblur = 'cancel';
$("input", this)
.datePicker({createButton:false})
.bind('click', function() {
Expand Down
10 changes: 5 additions & 5 deletions jquery.jeditable.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

/**
* Version 1.7.0
* Version 1.7.1
*
* ** means there is basic unit tests for this parameter.
*
Expand Down Expand Up @@ -139,7 +139,7 @@
return;
}

// prevent default action and bubbling
/* prevent default action and bubbling */
e.preventDefault();
e.stopPropagation();

Expand Down Expand Up @@ -358,7 +358,7 @@
error : function(xhr, status, error) {
onerror.apply(form, [settings, self, xhr]);
}
}
};

/* override with what is given in settings.ajaxoptions */
$.extend(ajaxoptions, settings.ajaxoptions);
Expand Down Expand Up @@ -392,7 +392,7 @@
}
}
}
}
};
});

};
Expand Down Expand Up @@ -511,7 +511,7 @@
if ($(this).val() == json['selected'] ||
$(this).text() == original.revert) {
$(this).attr('selected', 'selected');
};
}
});
}
}
Expand Down
10 changes: 5 additions & 5 deletions jquery.jeditable.time.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Timepicker for Jeditable
*
* Copyright (c) 2008 Mika Tuupola
* Copyright (c) 2008-2009 Mika Tuupola
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
Expand Down Expand Up @@ -30,7 +30,7 @@ $.editable.addInputType('time', {
}
$(this).append(hourselect);

for (var min=0; min <= 45; min = parseInt(min)+15) {
for (var min=0; min <= 45; min = parseInt(min, 10) + 15) {
if (min < 10) {
min = '0' + min;
}
Expand All @@ -49,8 +49,8 @@ $.editable.addInputType('time', {
content : function(string, settings, original) {

/* Select correct hour and minute in pulldowns. */
var hour = parseInt(string.substr(0,2));
var min = parseInt(string.substr(3,2));
var hour = parseInt(string.substr(0,2), 10);
var min = parseInt(string.substr(3,2), 10);

$('#hour_', this).children().each(function() {
if (hour == $(this).val()) {
Expand All @@ -59,7 +59,7 @@ $.editable.addInputType('time', {
});
$('#min_', this).children().each(function() {
if (min == $(this).val()) {
$(this).attr('selected', 'selected')
$(this).attr('selected', 'selected');
}
});

Expand Down
2 changes: 1 addition & 1 deletion jquery.jeditable.timepicker.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Timepicker for Jeditable
*
* Copyright (c) 2007-2008 Mika Tuupola
* Copyright (c) 2007-2009 Mika Tuupola
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
Expand Down

0 comments on commit 4e159cb

Please sign in to comment.