Skip to content

Commit

Permalink
Item116: rebrand javascript classes
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/BlogAddOn@979 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
ArthurClemens authored and ArthurClemens committed Nov 26, 2008
1 parent e364ebd commit 574c719
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data/_BlogAddOn/BlogPostCreator.txt
@@ -1,7 +1,7 @@
%META:TOPICINFO{author="ProjectContributor" date="1165850723" format="1.1" version="1.1"}%
---+!! %MAKETEXT{"Write a new blog post"}%

<script type="text/javascript" src="%PUBURL%/%SYSTEMWEB%/JavascriptFiles/twikiString.js"></script>
<script type="text/javascript" src="%PUBURL%/%SYSTEMWEB%/JavascriptFiles/foswikiString.js"></script>
<script type="text/javascript">
/* <![CDATA[ */
var didSwitchToJsField = false;
Expand All @@ -21,9 +21,9 @@ function canSubmit() {
topicName = topicName.replace(/\./g, "BLOGPOSTADDONUNDERSCORE");
topicName = topicName.replace(/ /g, "BLOGPOSTADDONUNDERSCORE");
topicName = topicName.replace(/-/g, "BLOGPOSTADDONDASH");
topicName = twiki.String.capitalize(topicName);
topicName = twiki.String.removeSpaces(topicName);
topicName = twiki.String.removePunctuation(topicName);
topicName = foswiki.String.capitalize(topicName);
topicName = foswiki.String.removeSpaces(topicName);
topicName = foswiki.String.removePunctuation(topicName);
topicName = topicName.replace(/BLOGPOSTADDONUNDERSCORE/g, "_");
topicName = topicName.replace(/BLOGPOSTADDONDASH/g, "-");

Expand Down

0 comments on commit 574c719

Please sign in to comment.