mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +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()
|
||||
{
|
||||
var newName = args.name;
|
||||
if (!newName)
|
||||
if (json.isNull("name"))
|
||||
{
|
||||
return jsonError("No name property specified");
|
||||
return jsonError("No new name property specified");
|
||||
}
|
||||
// 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"]);
|
||||
|
||||
// Get the site
|
||||
|
Reference in New Issue
Block a user