| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | //WikiWord
if (inForm.nonwikiword.checked == true) {
return removeSpaces(inValue);
}
var sIn = inValue;
var sOut = '';
var chgUpper = true;
for ( var i = 0; i < sIn.length; i++ ) {
var ch = sIn.charAt( i );
if( ch!=' ' ) {
if( chgUpper ) {
ch = ch.toUpperCase();
chgUpper = false;
}
}
if( ch==' ' ) {
chgUpper = true;
} else {
chgUpper = false;
}
sOut += ch;
}
return removeSpaces(sOut);
}
function removeSpaces(inValue) {
var sIn = inValue;
var sOut = '';
for ( var i = 0; i < sIn.length; i++ ) {
var ch = sIn.charAt( i );
if( ch==' ' ) {
chgUpper = true;
continue;
}
sOut += ch;
}
return sOut;
}
function canSubmit(inForm) {
inForm.topic.value = capitalize(inForm, inForm.topic.value);
// Use the negative value of the checkbox. This is the ugly way but must be used until edit script parameter allowsnonwikiword is implemented.
inForm.onlywikiname.value = (inForm.nonwikiword.checked == true) ? "off" : "on";
return true;
}
//]]>
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Create New Topic in TWiki Web | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
Revision 12005-11-08 - TWikiContributor
View topic | History: r8 < r7 < r6 < r5 | More topic actions... ![]() ![]() Ideas, requests, problems regarding TWiki? Send feedback Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.WebTopicCreator. |