(refs #9) Comments for commit and diff

This commit is contained in:
Shintaro Murakami
2014-10-25 10:22:31 +09:00
parent 823c52e941
commit af58e99dcf
31 changed files with 745 additions and 181 deletions

View File

@@ -35,12 +35,12 @@ $(function(){
prettyPrint();
});
function displayErrors(data){
function displayErrors(data, elem){
var i = 0;
$.each(data, function(key, value){
$('#error-' + key.split(".").join("_")).text(value);
$('#error-' + key.split(".").join("_"), elem).text(value);
if(i === 0){
$('#' + key).focus();
$('#' + key, elem).focus();
}
i++;
});