app/soc/content/js/menu-081026.js
changeset 426 114fe0f840c8
parent 423 25665d645fa8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/content/js/menu-081026.js	Mon Oct 27 19:19:44 2008 +0000
@@ -0,0 +1,27 @@
+$(function() {
+  var li = $('#side #menu span').parents('li').filter(':has(ul)');
+  li.children('a').dblclick(function() {
+    window.location = $(this).attr('href');
+  }).add(li.children('span')).click(function() {
+    $($(this).parents('li')[0]).toggleClass('closed').children("ul").toggle();
+    return false;
+  });
+});
+$(function() {
+  var li = $('#side #menu span').parents('li').filter(':has(ul)');
+  li.children('a').dblclick(function() {
+    window.location = $(this).attr('href');
+  }).add(li.children('span')).click(function() {
+    $($(this).parents('li')[0]).toggleClass('closed').children("ul").toggle();
+    return false;
+  });
+});
+$(function() {
+  var li = $('#side #menu span').parents('li').filter(':has(ul)');
+  li.children('a').dblclick(function() {
+    window.location = $(this).attr('href');
+  }).add(li.children('span')).click(function() {
+    $($(this).parents('li')[0]).toggleClass('closed').children("ul").toggle();
+    return false;
+  });
+});