mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 17:05:43 +01:00
fix history bug with open changesetviewer
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user