--- pubs/default/lenya/xslt/authoring/create.xsl Mon May 9 02:04:30 2005 +++ pubs/default/lenya/xslt/authoring/create.xsl Wed Oct 12 11:01:33 2005 @@ -68,6 +68,16 @@ return true; } + // Automatically fill blank doc id field with short version of title: + function copyTitleToId (theForm) + { + if (theForm["properties.create.child-id"].value == "") + { + var docid = theForm["properties.create.child-name"].value; + docid = docid.replace(/[^A-Za-z0-9\-]/g,"").toLowerCase(); // remove odd chars + theForm["properties.create.child-id"].value = docid; + } + }
+ + + + + + + Parent ID: @@ -100,13 +118,6 @@
(No whitespace, no special characters) - - - - - - -