From 02ea1ebc27cf2c19c3e7fc1236e608f39e60e4b8 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 7 Mar 2010 20:46:14 -0500 Subject: Syntax. --- server-handler/admin.html | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'server-handler/admin.html') 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 here to use the admin panel.'; @@ -173,7 +174,7 @@ window.onload = function() {

AnyClip Moment Selector Admin Panel

Loading list. Please wait...

-