Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 2
- Log:
Initial import of Instiki 0.11.0 sources from a downloaded Tarball.
Instiki is a Ruby On Rails based Wiki clone.
- Author:
- adh
- Date:
- Sat Jul 22 14:54:51 +0100 2006
- Size:
- 1833 Bytes
1 | function proposeAddress() { |
2 | document.getElementById('address').value = |
3 | document.getElementById('name').value.replace(/[^a-zA-Z0-9]/g, "").toLowerCase(); |
4 | } |
5 | |
6 | function cleanAddress() { |
7 | document.getElementById('address').value = |
8 | document.getElementById('address').value.replace(/[^a-zA-Z0-9]/g, "").toLowerCase(); |
9 | } |
10 | |
11 | function checkSystemPassword(password) { |
12 | if (password == "") { |
13 | alert("You must enter the system password"); |
14 | return false; |
15 | } else { |
16 | return true; |
17 | } |
18 | } |
19 | |
20 | function validateEditWebForm() { |
21 | if (!checkSystemPassword(document.getElementById('system_password').value)) { |
22 | return false; |
23 | } |
24 | if (document.getElementById('name').value == "") { |
25 | alert("You must pick a name for the web"); |
26 | return false; |
27 | } |
28 | if (document.getElementById('address').value == "") { |
29 | alert("You must pick an address for the web"); |
30 | return false; |
31 | } |
32 | if (document.getElementById('password').value != "" && |
33 | document.getElementById('password').value != document.getElementById('password_check').value) { |
34 | alert("The password and its verification doesn't match"); |
35 | return false; |
36 | } |
37 | return true; |
38 | } |
39 | |
40 | // overriding auto-complete by form managers |
41 | // code by Chris Holland, lifted from |
42 | // http://chrisholland.blogspot.com/2004/11/banks-protect-privacy-disable.html |
43 | function overrideAutocomplete() { |
44 | if (document.getElementsByTagName) { |
45 | var inputElements = document.getElementsByTagName("input"); |
46 | for (i=0; inputElements[i]; i++) { |
47 | if (inputElements[i].className && (inputElements[i].className.indexOf("disableAutoComplete") != -1)) { |
48 | inputElements[i].setAttribute("autocomplete","off"); |
49 | }//if current input element has the disableAutoComplete class set. |
50 | }//loop thru input elements |
51 | } |
52 | } |
53 | |
54 | // This line is executed when the script is loaded |
55 | overrideAutocomplete(); |