Item10536: System.UserRegistration WikiName JS support for all skins

pencil
Priority: Urgent
Current State: Closed
Released In: 1.1.3
Target Release: patch
Applies To: Engine
Component: TopicUserMappingContrib
Branches:
Reported By: WillNorris
Waiting For: Main.WillNorris
Last Change By: KennethLavrsen
UserRegistration uses javascript functions which are always included by PatternSkin.

using other skins, i get the following JS error:
Error: foswiki.String is undefined
Source File: http://example.com/bin/view/System/UserRegistration
Line: 1

to System/DefaultUserRegistration, i added at top:

%ADDTOZONE{ "script" id="JavascriptFiles/foswikiString"
            text="<script type='text/javascript'
src='%PUBURL%/%SYSTEMWEB%/JavascriptFiles/foswikiString.js'></script>"
}%

which i think should work with any skin. i note that NatSkin has its own version of registration, and i assume that it was not broken.

-- WillNorris - 25 Mar 2011

 
Topic revision: r4 - 16 Apr 2011, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy