author | Pawel Solyga <Pawel.Solyga@gmail.com> |
Tue, 04 Nov 2008 20:06:36 +0000 | |
changeset 442 | 92c17629af0e |
parent 426 | 114fe0f840c8 |
permissions | -rw-r--r-- |
423
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
1 |
$(function() { |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
2 |
var li = $('#side #menu span').parents('li').filter(':has(ul)'); |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
3 |
li.children('a').dblclick(function() { |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
4 |
window.location = $(this).attr('href'); |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
5 |
}).add(li.children('span')).click(function() { |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
6 |
$($(this).parents('li')[0]).toggleClass('closed').children("ul").toggle(); |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
7 |
return false; |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
8 |
}); |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
9 |
}); |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
10 |
$(function() { |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
11 |
var li = $('#side #menu span').parents('li').filter(':has(ul)'); |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
12 |
li.children('a').dblclick(function() { |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
13 |
window.location = $(this).attr('href'); |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
14 |
}).add(li.children('span')).click(function() { |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
15 |
$($(this).parents('li')[0]).toggleClass('closed').children("ul").toggle(); |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
16 |
return false; |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
17 |
}); |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
18 |
}); |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
19 |
$(function() { |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
20 |
var li = $('#side #menu span').parents('li').filter(':has(ul)'); |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
21 |
li.children('a').dblclick(function() { |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
22 |
window.location = $(this).attr('href'); |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
23 |
}).add(li.children('span')).click(function() { |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
24 |
$($(this).parents('li')[0]).toggleClass('closed').children("ul").toggle(); |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
25 |
return false; |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
26 |
}); |
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
27 |
}); |