diff options
| author | 2010-03-07 20:46:14 -0500 | |
|---|---|---|
| committer | 2010-03-07 20:46:14 -0500 | |
| commit | 02ea1ebc27cf2c19c3e7fc1236e608f39e60e4b8 (patch) | |
| tree | d6f60b07b7e3499fe384d029fc924011979240e3 /server-handler/admin.html | |
| parent | Finally enable ordering for good. (diff) | |
| download | MomentSelector-02ea1ebc27cf2c19c3e7fc1236e608f39e60e4b8.tar.xz MomentSelector-02ea1ebc27cf2c19c3e7fc1236e608f39e60e4b8.zip | |
Syntax.
Diffstat (limited to 'server-handler/admin.html')
| -rw-r--r-- | server-handler/admin.html | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/server-handler/admin.html b/server-handler/admin.html index 9583991..26b3bd0 100644 --- a/server-handler/admin.html +++ b/server-handler/admin.html @@ -25,7 +25,7 @@ function changeName() changeNameRequest.me.innerText = "Error"; } } - } + }; changeNameRequest.send(null); } function deleteMoment() @@ -42,16 +42,17 @@ function deleteMoment() var totalCount = document.getElementById("totalCount"); totalCount.innerText = (--totalCount.total).toString() + " moments in database"; var titleLink = document.getElementById(deleteMomentRequest.me.titleId); - if (titleLink != null) + if (titleLink != null) { if (!--titleLink.count) titleLink.parentNode.removeChild(titleLink); else titleLink.innerText = titleLink.title + " (" + titleLink.count.toString() + ")"; + } } else deleteMomentRequest.me.innerText = "Error"; } - } + }; deleteMomentRequest.send(null); } function loadMomentList() @@ -97,7 +98,7 @@ function loadMomentList() momentName.style.width = "300px"; momentName.style.background = "inherit"; momentName.style.border = "1px solid #36C"; - momentName.style.font = "inherit" + momentName.style.font = "inherit"; } momentName.style.fontSize = "14px"; momentName.style.fontWeight = "bold"; @@ -132,7 +133,7 @@ function loadMomentList() momentsDiv.appendChild(momentDiv); } } - } + }; momentRequest.send(null); } function loadTitles() @@ -152,16 +153,16 @@ function loadTitles() entry.style.cursor = "pointer"; entry.style.color = "#36C"; entry.titleId = response.titles[i].id; - entry.id = entry.titleId + entry.id = entry.titleId; entry.title = response.titles[i].title; entry.count = response.titles[i].count; entry.onclick = loadMomentList; titlesDiv.appendChild(entry); } } - } + }; titleRequest.send(null); -}; +} window.onload = function() { if (navigator.userAgent.toLowerCase().indexOf('chrome') == -1) document.getElementById("totalCount").innerHTML = 'You are not running Google Chrome. Download it <a href="http://www.google.com/chrome">here</a> to use the admin panel.'; @@ -173,7 +174,7 @@ window.onload = function() { <body> <h1>AnyClip Moment Selector Admin Panel</h1> <h3 id="totalCount">Loading list. Please wait...</h3> -<div style="visibility: hidden; float:left; background: #E5ECF9; border-right: 1px dotted #36C; padding: 6px; width: 300px" id="titles"> +<div style="visibility: hidden; float:left; background: #E5ECF9; border-right: 1px dotted #36C; padding: 6px; width: 300px;" id="titles"> </div> <div style="margin-left: 320px;" id="moments"> </div> |
