aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook-blue
diff options
context:
space:
mode:
authortommy tomson <thomas.bierey@gmx.de>2012-03-09 18:15:27 +0100
committertommy tomson <thomas.bierey@gmx.de>2012-03-09 18:15:27 +0100
commit8fe4645a5d97a66b823744248698c624f7146d5b (patch)
tree5ba3f4ab9c10a7a35ea9d462cfa49222d3bde9e9 /view/theme/diabook-blue
parent9f441731af6929272b27ad9097235aab82f25b29 (diff)
downloadvolse-hubzilla-8fe4645a5d97a66b823744248698c624f7146d5b.tar.gz
volse-hubzilla-8fe4645a5d97a66b823744248698c624f7146d5b.tar.bz2
volse-hubzilla-8fe4645a5d97a66b823744248698c624f7146d5b.zip
add js to hide nav-menus, when clicked outside
Diffstat (limited to 'view/theme/diabook-blue')
-rwxr-xr-xview/theme/diabook-blue/icons/starred.pngbin1617 -> 501 bytes
-rwxr-xr-xview/theme/diabook-blue/theme.php66
2 files changed, 66 insertions, 0 deletions
diff --git a/view/theme/diabook-blue/icons/starred.png b/view/theme/diabook-blue/icons/starred.png
index 72a49c157..2b82dfca3 100755
--- a/view/theme/diabook-blue/icons/starred.png
+++ b/view/theme/diabook-blue/icons/starred.png
Binary files differ
diff --git a/view/theme/diabook-blue/theme.php b/view/theme/diabook-blue/theme.php
new file mode 100755
index 000000000..0a20c9fbc
--- /dev/null
+++ b/view/theme/diabook-blue/theme.php
@@ -0,0 +1,66 @@
+<?php
+
+/*
+ * Name: Diabook
+ * Description: Diabook: report bugs and request here: http://pad.toktan.org/p/diabook or contact me : thomas_bierey@friendica.eu
+ * Version:
+ * Author:
+ */
+
+$a->theme_info = array(
+ 'extends' => 'diabook',
+);
+
+$a->page['htmlhead'] .= <<< EOT
+<script>
+//contacts
+$('html').click(function() {
+ $('#nav-contacts-linkmenu').removeClass('selected');
+ document.getElementById( "nav-contacts-menu" ).style.display = "none";
+ });
+
+ $('#nav-contacts-linkmenu').click(function(event){
+ event.stopPropagation();
+ });
+
+//messages
+$('html').click(function() {
+ $('#nav-messages-linkmenu').removeClass('selected');
+ document.getElementById( "nav-messages-menu" ).style.display = "none";
+ });
+
+ $('#nav-messages-linkmenu').click(function(event){
+ event.stopPropagation();
+ });
+
+//notifications
+$('html').click(function() {
+ $('#nav-notifications-linkmenu').removeClass('selected');
+ document.getElementById( "nav-notifications-menu" ).style.display = "none";
+ });
+
+ $('#nav-notifications-linkmenu').click(function(event){
+ event.stopPropagation();
+ });
+
+//usermenu
+$('html').click(function() {
+ $('#nav-user-linkmenu').removeClass('selected');
+ document.getElementById( "nav-user-menu" ).style.display = "none";
+ });
+
+ $('#nav-user-linkmenu').click(function(event){
+ event.stopPropagation();
+ });
+
+ //settingsmenu
+ $('html').click(function() {
+ $('#nav-site-linkmenu').removeClass('selected');
+ document.getElementById( "nav-site-menu" ).style.display = "none";
+ });
+
+ $('#nav-site-linkmenu').click(function(event){
+ event.stopPropagation();
+ });
+</script>
+EOT;