From a19c6f5632d28cdcdf5023666d926d5929c347a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 23 Oct 2010 03:11:50 +0200 Subject: [PATCH] Add online/offline marker in Sone top
. --- src/main/resources/static/javascript/sone.js | 4 ++++ src/main/resources/templates/include/head.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index f1603ac..cd27cc3 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -1,5 +1,9 @@ /* Sone JavaScript functions. */ +function isOnline() { + return $("#sone").hasClass("online"); +} + function registerInputTextareaSwap(inputSelector, defaultText, inputFieldName, optional) { $(inputSelector).each(function() { textarea = $("").blur(function() { diff --git a/src/main/resources/templates/include/head.html b/src/main/resources/templates/include/head.html index 797e7a9..233a9cd 100644 --- a/src/main/resources/templates/include/head.html +++ b/src/main/resources/templates/include/head.html @@ -1,4 +1,4 @@ -
+
<% formPassword|html>
-- 2.7.4