Created
March 20, 2009 13:57
-
-
Save olleolleolle/82368 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/jquery.jeditable.ajaxupload.js b/jquery.jeditable.ajaxupload.js | |
index a211183..bedafb7 100644 | |
--- a/jquery.jeditable.ajaxupload.js | |
+++ b/jquery.jeditable.ajaxupload.js | |
@@ -44,7 +44,7 @@ $.editable.addInputType('ajaxupload', { | |
error: function (data, status, e) { | |
alert(e); | |
} | |
- }) | |
+ }); | |
return(false); | |
}); | |
} | |
diff --git a/jquery.jeditable.datepicker.js b/jquery.jeditable.datepicker.js | |
index b1c60ff..4291594 100644 | |
--- a/jquery.jeditable.datepicker.js | |
+++ b/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() { | |
diff --git a/jquery.jeditable.js b/jquery.jeditable.js | |
index c8f0bdd..b01872c 100644 | |
--- a/jquery.jeditable.js | |
+++ b/jquery.jeditable.js | |
@@ -370,7 +370,7 @@ | |
error : function(xhr, status, error) { | |
onerror.apply(form, [settings, self, xhr]); | |
} | |
- } | |
+ }; | |
/* override with what is given in settings.ajaxoptions */ | |
$.extend(ajaxoptions, settings.ajaxoptions); | |
@@ -404,7 +404,7 @@ | |
} | |
} | |
} | |
- } | |
+ }; | |
}); | |
}; | |
@@ -523,7 +523,7 @@ | |
if ($(this).val() == json['selected'] || | |
$(this).text() == original.revert) { | |
$(this).attr('selected', 'selected'); | |
- }; | |
+ } | |
}); | |
} | |
} | |
diff --git a/jquery.jeditable.time.js b/jquery.jeditable.time.js | |
index ca4ac31..c286a63 100644 | |
--- a/jquery.jeditable.time.js | |
+++ b/jquery.jeditable.time.js | |
@@ -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'); | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment