fix history bug with open changesetviewer

This commit is contained in:
Sebastian Sdorra
2011-08-15 14:35:52 +02:00
parent 3e1c979085
commit e667932ef6
2 changed files with 62 additions and 27 deletions

View File

@@ -43,6 +43,20 @@ Sonia.util.clone = function(obj) {
} return newObj;
};
Sonia.util.parseInt = function(string, defaultValue){
var result = defaultValue;
try {
result = parseInt(string);
} catch (e){
if (debug){
console.debug(e);
}
}
if (isNaN(result)){
result = defaultValue;
}
return result;
}
Sonia.util.getStringFromArray = function(array){
var value = '';