Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2013-04-05 15:19:35 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2013-04-05 15:19:35 (GMT)
commitbbd9c716fc1b772aee595a3e3642a8d465004020 (patch)
tree89e38e8c2b1f8231fd41be3a8b2533060917ac57
parent771ae277cd29f35a5601e9a7235bbcfec9f15965 (diff)
Show a msg if no items are selected
The msg is not localizable. We need look at a away to use gettext on html pages or any other solution to display a translated msg. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--web/index.html7
-rw-r--r--web/style.css10
2 files changed, 16 insertions, 1 deletions
diff --git a/web/index.html b/web/index.html
index 6b7a6e2..b2cef32 100644
--- a/web/index.html
+++ b/web/index.html
@@ -35,6 +35,13 @@
"</td>" +
"</tr>");
}
+
+ if (selected.length == 0) {
+ $('#journaltable').append("<tr>" +
+ "<td class='error_msg'>No item selected, " +
+ "add items to share from your Journal." +
+ "</td></tr>");
+ }
});
}
</script>
diff --git a/web/style.css b/web/style.css
index 65e3048..d2f8b69 100644
--- a/web/style.css
+++ b/web/style.css
@@ -18,7 +18,6 @@ body {
.title {
font-family: sans-serif,cantarell,helvetica;
- color: #fff;
font-size: 18px;
font-weight: bold;
color: #3D4E9C;
@@ -54,6 +53,15 @@ body {
background-color:#EEEEEE;
}
+.error_msg {
+ font-family: sans-serif,cantarell,helvetica;
+ color: #000000;
+ font-size: 26px;
+ width: 100%;
+ text-align: center;
+ padding: 120px;
+}
+
img {
padding: 5px;
border:1px solid gray;