}
var hasNonWikiWordCheck = (inForm.nonwikiword = undefined);
Changed:
< <
var userAllowsNonWikiWord = true;
> >
var userAllowsNonWikiWord = false;
/*
if (hasNonWikiWordCheck) {
userAllowsNonWikiWord = inForm.nonwikiword.checked;
}
Changed:
< <
> >
*/
/* check if current input is a valid WikiWord */
var noSpaceName = removeSpacesAndPunctuation(inputForTopicName);
Line: 109 to 110
Topic name:
<--generated name will be put here-->
Deleted:
< <
It's usually best to choose a WikiWord for the new topic name, otherwise automatic linking may not work. Characters not allowed in topic names, such as spaces will automatically be removed.
/**
Checks if the entered topic name is a valid WikiWord.
Changed:
< <
If so, enables the submit button, if not: enables the submit button
if the user allows non-WikiWords as topic name; otherwise disables the
submit button and returns 'false'.
> >
If so, enables the submit button, if not: enables the submit button if the user allows non-WikiWords as topic name; otherwise disables the submit button and returns 'false'.
Automatically removes spaces from entered name.
Automatically strips illegal characters.
If non-WikiWords are not allowed, capitalizes words (separated by space).
Added:
> >
If non-WikiWords are allowed, capitalizes sentence.
The generated topic name is written to a 'feedback' field.
@param inForm : pointer to the form
@param inShouldConvertInput : true: a new name is created from the entered name
Line: 21 to 22
function canSubmit(inForm, inShouldConvertInput) {
var inputForTopicName = inForm.topic.value;
Added:
> >
if (inputForTopicName) return;
Changed:
< <
// Topic names of zero length are not allowed
> >
/* Topic names of zero length are not allowed */
if (inputForTopicName.length == 0) {
disableSubmit(inForm.submit);
feedbackHeader = "Topic will be named: ";
feedbackText = feedbackHeader + wikiWordName;
insertHtml(feedbackText, "webTopicCreatorFeedback");
Changed:
< <
// Update hidden field value
// Use the negative value of the checkbox. This is the ugly way but must be used until edit script parameter allowsnonwikiword is implemented.
> >
/*
Update hidden field value
Use the negative value of the checkbox. This is the ugly way but must be used until edit script parameter allowsnonwikiword is implemented.
*/
if (hasNonWikiWordCheck && userAllowsNonWikiWord) {
It's usually best to choose a WikiWord for the new topic name, otherwise automatic linking may not work. Characters not allowed in topic names, such as spaces will automatically be removed.
> >
It's usually best to choose a WikiWord for the new topic name, otherwise automatic linking may not work. Characters not allowed in topic names, such as spaces will automatically be removed.
<-- TODO: move JS to a separate file and make it callable on click of the button too -->
<-- TODO: blank out all the irrelevant links: Edit, Compose, Attach, Printable, ... Raw text, versions, History, More topic actions: could this be a CSS? -->
It's usually best to choose a WikiWord for the new topic name, otherwise automatic linking may not work. Characters not allowed in topic names, such as spaces will automatically be removed.
> >
<--generated name will be put here-->
It's usually best to choose a WikiWord for the new topic name, otherwise automatic linking may not work. Characters not allowed in topic names, such as spaces will automatically be removed.
<--/twikiFormStep-->
Topic parent:
Changed:
< <
> >
Changed:
< <
> >
<--/twikiFormStep-->
Changed:
< <
> >
<--/twikiFormStep-->
<--/twikiFormSteps-->
Changed:
< <
> >
Added:
> >
Once you have created the topic, consider adding links in related topics to the new topic so that there are more ways people can discover it.
<-- TODO: move JS to a separate file and make it callable on click of the button too -->
<-- TODO: blank out all the irrelevant links: Edit, Compose, Attach, Printable, ... Raw text, versions, History, More topic actions: could this be a CSS? -->
Changed:
< <
Topic parent:
> >
It's usually best to choose a WikiWord for the new topic name, otherwise automatic linking may not work. Characters not allowed in topic names, such as spaces will automatically be removed.
<--/twikiFormStep-->
Topic parent:
Changed:
< <
> >
Changed:
< <
> >
<--/twikiFormStep-->
<--/twikiFormStep-->
<--/twikiFormSteps-->
Changed:
< <
To create a new topic, enter a WikiWord for the topic name, select a topic parent and click 'Create.'
Once you have created the topic, consider adding links in related topics to the new topic so that there are more ways people can discover it.
> >
Once you have created the topic, consider adding links in related topics to the new topic so that there are more ways people can discover it.
To create a new topic, enter a WikiWord for the topic name, select a topic parent and click 'Create.'
Once you have created the topic, consider adding links in related topics to the new topic so that there are more ways people can discover it.
This site is powered by the TWiki collaboration platform. All material on this collaboration platform is the property of the contributing authors. All material marked as authored by Eben Moglen is available under the license terms CC-BY-SA version 4.