Foswiki on GitHub is open for business! Next release meeting: Monday October 13, 1300Z

Item10536: System.UserRegistration WikiName JS support for all skins

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Urgent Closed Engine TopicUserMappingContrib Main.WillNorris
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 CopyrightStatement. Creative Commons License