admin: introducing new page
This commit is contained in:
parent
08fb2ad37c
commit
185262b2e7
3 changed files with 49 additions and 0 deletions
17
static/js/youp0m-admin.js
Normal file
17
static/js/youp0m-admin.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
api_url = "/api/next/";
|
||||
img_url = "/images/next/";
|
||||
|
||||
function admin_ctrl(figure) {
|
||||
var menu = document.createElement("ul");
|
||||
var item = document.createElement("li", "test");
|
||||
menu.appendChild(item);
|
||||
figure.appendChild(menu)
|
||||
}
|
||||
|
||||
function sync() {
|
||||
path = window.location.pathname.replace(/.*\/([^\/]*)/, "$1");
|
||||
if (path == "" || path == "all")
|
||||
show_mozaic(admin_ctrl);
|
||||
else
|
||||
show_picture(path);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue