20 lines
637 B
JavaScript
20 lines
637 B
JavaScript
|
|
/**
|
|
* overrides the internal href-function, as
|
|
* helma.framework.core.Application.getNodeHref(Object,String)
|
|
* isn't able to compute correct urls for non-node objects.
|
|
* @arg action of prototype
|
|
*/
|
|
function href(action) {
|
|
var url = getProperty("baseURI");
|
|
url = (url==null || url=="null") ? "" : url;
|
|
url += this.getParentElement().getParentElement().getName() + "/api/" + this.getParentElement().getName() + "/" + this.getTypeName().toLowerCase()+"_"+this.name + "/" + ( (action!=null && action!="") ? action : "main" );
|
|
return url;
|
|
}
|
|
|
|
|
|
function getApplication() {
|
|
return this.getParentElement().getParentElement();
|
|
}
|
|
|
|
|