Bug #18043
closed
Toggle Menu in new backend
Added by Steffen Kamper over 16 years ago.
Updated almost 14 years ago.
Description
This is a beginning for toggle menu in BE
toDo: save state via Ajax
(issue imported from #M7251)
Files
Steffen, have a look at the old menu, there should be some uc variable already which was used to store the toggle state with the old backend
works perfectly under FF & Safari 3.0
by looking at the JS:
- just give the headers a class which you can the look up using prototype's $$ function
- for initialization do not observe clicks on document but observe the dom:loaded event and then use each to iterate over the elements you found using $$
- event.target, parentNode, .id are bad style, please use prototype's function. makes things a lot easier
i will check that and improve js, also try to save state like old menu.
i attached new patch which also saves the menu state in uc
works (safari 3 and FF2)
+1
committed Steffen's patch after cleaning up formatting a little bit, great work!
Also available in: Atom
PDF