Last change
on this file since 246 was
246,
checked in by hendrikvanantwerpen, 13 years ago
|
Created first page mainmenu in new system.
Moved old pages out of project root.
Fixed RDFAPI.php case for people with proper OS'es.
|
File size:
1.1 KB
|
Line | |
---|
1 | $(function() { |
---|
2 | |
---|
3 | function loadMenu() { |
---|
4 | $.get("pages/mainmenu/mainmenu.html",function(html){ |
---|
5 | $("#content").html(html); |
---|
6 | }); |
---|
7 | $.getScript("pages/mainmenu/mainmenu.js"); |
---|
8 | } |
---|
9 | |
---|
10 | $("#loginForm").dialog({ |
---|
11 | buttons: { |
---|
12 | "Login": function() { |
---|
13 | rft.auth.login($("#username").val(),$("#password").val(), |
---|
14 | function(){ |
---|
15 | $("#info").html("Login succesful."); |
---|
16 | $("#loginForm").dialog("close"); |
---|
17 | loadMenu(); |
---|
18 | }, |
---|
19 | function(){ |
---|
20 | $("#info").html("Login failed."); |
---|
21 | } |
---|
22 | ); |
---|
23 | |
---|
24 | |
---|
25 | }, |
---|
26 | "Register": function() { |
---|
27 | rft.auth.register($("#username").val(),$("#password").val(), |
---|
28 | function(){ |
---|
29 | $("#info").val("Succesfully registered, please login now."); |
---|
30 | }, |
---|
31 | function(){ |
---|
32 | $("#info").html("Register failed, username already in use."); |
---|
33 | } |
---|
34 | ); |
---|
35 | } |
---|
36 | } |
---|
37 | |
---|
38 | }); |
---|
39 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.