mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Added first cut of page rename functionality to the toolbar.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9676 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -12,13 +12,13 @@ model.result = main();
|
|||||||
|
|
||||||
function main()
|
function main()
|
||||||
{
|
{
|
||||||
var newName = args.name;
|
if (json.isNull("name"))
|
||||||
if (!newName)
|
|
||||||
{
|
{
|
||||||
return jsonError("No name property specified");
|
return jsonError("No new name property specified");
|
||||||
}
|
}
|
||||||
// Remove any whitespace and replace with "_"
|
// Remove any whitespace and replace with "_"
|
||||||
newName = newName.replace(/\\s+/g, "_");
|
var newName = String(json.get("name")).replace(/\\s+/g, "_");
|
||||||
|
|
||||||
var params = getTemplateArgs(["siteId", "pageTitle"]);
|
var params = getTemplateArgs(["siteId", "pageTitle"]);
|
||||||
|
|
||||||
// Get the site
|
// Get the site
|
||||||
|
Reference in New Issue
Block a user