Commit a850ba5e authored by Téo Vasseur's avatar Téo Vasseur
Browse files

clone.js : add getNameAndCode()

See #903
parent 21cb938a
......@@ -357,6 +357,19 @@ Clone.prototype = {
}
}, //end getCode
/**
* return custom name and segmentation name "<c_name> ( <seg name> )" <br>
* return segmentation name only if there is no custom name
* @return {string} custom name and segmentation name
* */
getNameAndCode: function () {
if (this.c_name) {
return this.c_name + " (" + this.getCode() + ")";
} else {
return this.getCode();
}
}, //end getNameAndCode
/**
* change/add custom name
* @param {string} name
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment