New Content pane is working

This commit is contained in:
Doug Bell 2010-08-04 17:55:13 -05:00
parent 90d974d911
commit 1b0ec95abb
5 changed files with 170 additions and 15 deletions

View file

@ -146,3 +146,15 @@ a:link {
display: block;
padding: 2px;
}
#newContentBar a {
display: block;
height: 24px;
font-size: 12px;
padding-left: 4px;
}
#newContentBar a:link, #newContentBar a:visited, #newContentBar a:active {
text-decoration: none;
color: black;
}

View file

@ -640,6 +640,15 @@ WebGUI.Admin.prototype.hideInfoMessage
infoContainer.style.display = "none";
};
/**
* addNewContent( urlFragment )
* Add new content by visiting the given URL fragment
*/
WebGUI.Admin.prototype.addNewContent
= function ( urlFragment ) {
this.gotoAsset( appendToUrl( this.currentAssetDef.url, urlFragment ) );
};
/****************************************************************************
* WebGUI.Admin.LocationBar
*/