Index: lams_tool_wiki/web/includes/css/wiki_style.css =================================================================== diff -u -r1082bdcc357c105126a5641cecc68acfa645b66b -r725a8b0e55b44174a2911ac36ec6fef800c7ef20 --- lams_tool_wiki/web/includes/css/wiki_style.css (.../wiki_style.css) (revision 1082bdcc357c105126a5641cecc68acfa645b66b) +++ lams_tool_wiki/web/includes/css/wiki_style.css (.../wiki_style.css) (revision 725a8b0e55b44174a2911ac36ec6fef800c7ef20) @@ -33,4 +33,9 @@ margin: 0px; } +.error { + color: red; + +} + \ No newline at end of file Index: lams_tool_wiki/web/includes/javascript/validation.js =================================================================== diff -u --- lams_tool_wiki/web/includes/javascript/validation.js (revision 0) +++ lams_tool_wiki/web/includes/javascript/validation.js (revision 725a8b0e55b44174a2911ac36ec6fef800c7ef20) @@ -0,0 +1,31 @@ + $(function(){ + + $('form input[name="title"]').blur(function () { + var title = $(this).val(); + var re = /^[^<>^#()/\\|'\",{}`]*$/; + if (re.test(title)) { + $('.title').hide(); + } else { + $('.title').show(); + $(this).focus(); + $(this).select(); + } + + }); + + + $('form input[name="newPageTitle"]').blur(function () { + var newPageTitle = $(this).val(); + var re = /^[^<>^#()/\\|'\",{}`]*$/; + if (re.test(newPageTitle)) { + $('.newPageTitle').hide(); + } else { + $('.newPageTitle').show(); + $(this).focus(); + $(this).select(); + } + + }); + + + }); Index: lams_tool_wiki/web/pages/authoring/authoring.jsp =================================================================== diff -u -r8b97231e320c0c5b674f07c14da711f232ba9e1c -r725a8b0e55b44174a2911ac36ec6fef800c7ef20 --- lams_tool_wiki/web/pages/authoring/authoring.jsp (.../authoring.jsp) (revision 8b97231e320c0c5b674f07c14da711f232ba9e1c) +++ lams_tool_wiki/web/pages/authoring/authoring.jsp (.../authoring.jsp) (revision 725a8b0e55b44174a2911ac36ec6fef800c7ef20) @@ -2,6 +2,10 @@ <%@ page import="org.lamsfoundation.lams.tool.wiki.util.WikiConstants"%> + + + + Index: lams_tool_wiki/web/pages/authoring/basic.jsp =================================================================== diff -u -r95d3a8ab54accdb67b113b8fb22b607d99d8af91 -r725a8b0e55b44174a2911ac36ec6fef800c7ef20 --- lams_tool_wiki/web/pages/authoring/basic.jsp (.../basic.jsp) (revision 95d3a8ab54accdb67b113b8fb22b607d99d8af91) +++ lams_tool_wiki/web/pages/authoring/basic.jsp (.../basic.jsp) (revision 725a8b0e55b44174a2911ac36ec6fef800c7ef20) @@ -1,5 +1,9 @@ <%@ include file="/common/taglibs.jsp"%> + + + + @@ -8,9 +12,9 @@
@@ -65,7 +69,7 @@

- ${currentWikiPage.title} +


@@ -78,7 +82,7 @@ - ${currentWikiPage.currentWikiContentDTO.editorDTO.firstName} ${currentWikiPage.currentWikiContentDTO.editorDTO.lastName} + @@ -92,14 +96,14 @@
- ${currentWikiPage.currentWikiContentDTO.body} +