mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 05:55:51 +01:00
(refs #9) Comments for commit and diff
This commit is contained in:
@@ -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++;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user