-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
37 lines (35 loc) · 981 Bytes
/
Copy pathscript.js
File metadata and controls
37 lines (35 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
function LoadpublicMenu () {
$('#PublicMenu').hide();
$.ajax({
async:true,
url: 'elementHandling/getPublicPages.php',
cache: 'false',
success: function (tmp) {
var jsonData = jQuery.parseJSON(tmp);
$.each(jsonData, function (index, value) {
$("#page").append('<option value='+value["id"].toString()+' >'+value["title"]+'</option>');
});
}
});
$('#PublicMenu').load('elementHandling/publicPages.html');
$("#PublicMenu").show();
}
function LoadDefaultMainPage () {
// Show the new user dialog.
$('#userInt').hide();
$('#Main').load('main.html');
hideEditMenu();
$('#sidebar').hide();
$('#LoginMenu').load('topMenuUNloggedin.html');
LoadpublicMenu();
document.title = "Web page making system";
}
function LoadLoggedInMainPage () {
// Show the new user dialog.
$('#Main').load('loggedInMain.html');
$('#LoginMenu').load('topMenuLoggedIn.html');
hideEditMenu();
getMYPages();
LoadpublicMenu();
document.title = "Web page making system";
}