Browse files

Make JSLint happy.

Patch by olleolleolle ( http://github.com/olleolleolle )
  • Loading branch information...
1 parent a6b805d commit 4e159cbb460afcea81597f0b3021e54229b7dc17 @tuupola committed Mar 31, 2009
View
4 jquery.jeditable.ajaxupload.js
@@ -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
@@ -44,7 +44,7 @@ $.editable.addInputType('ajaxupload', {
error: function (data, status, e) {
alert(e);
}
- })
+ });
return(false);
});
}
View
2 jquery.jeditable.datepicker.js
@@ -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() {
View
10 jquery.jeditable.js
@@ -15,7 +15,7 @@
*/
/**
- * Version 1.7.0
+ * Version 1.7.1
*
* ** means there is basic unit tests for this parameter.
*
@@ -139,7 +139,7 @@
return;
}
- // prevent default action and bubbling
+ /* prevent default action and bubbling */
e.preventDefault();
e.stopPropagation();
@@ -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);
@@ -392,7 +392,7 @@
}
}
}
- }
+ };
});
};
@@ -511,7 +511,7 @@
if ($(this).val() == json['selected'] ||
$(this).text() == original.revert) {
$(this).attr('selected', 'selected');
- };
+ }
});
}
}
View
10 jquery.jeditable.time.js
@@ -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
@@ -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;
}
@@ -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()) {
@@ -59,7 +59,7 @@ $.editable.addInputType('time', {
});
$('#min_', this).children().each(function() {
if (min == $(this).val()) {
- $(this).attr('selected', 'selected')
+ $(this).attr('selected', 'selected');
}
});
View
2 jquery.jeditable.timepicker.js
@@ -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

0 comments on commit 4e159cb

Please sign in to comment.