Skip to content

Commit d7071d4

Browse files
committed
markdown correction for soln list
1 parent acae1cb commit d7071d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/how-to/enable_the_back_button.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ Now armed with Ben’s plugin, we’re going to refactor the tab code so that th
2222

2323
The way the existing tabs work is as follows:
2424

25-
-Collect all the tab panels using $('div.tabs > div') and initialise to show the first tab1
26-
-Listen for clicks on the links that form the actual tabs
27-
-When a tab is clicked, hide all the tab panels, filter down to the one we wanted to see and show it, then - update the classes on the tabs so the current link appears to be focused
28-
-Finally, initialise by finding the first tab and triggering a click
25+
- Collect all the tab panels using $('div.tabs > div') and initialise to show the first tab1
26+
- Listen for clicks on the links that form the actual tabs
27+
- When a tab is clicked, hide all the tab panels, filter down to the one we wanted to see and show it, then update the classes on the tabs so the current link appears to be focused
28+
- Finally, initialise by finding the first tab and triggering a click
2929

30-
#1. Actually, you don’t need the subsequent lines after the hide: .filter(':first').show() as the triggerhashchange will handle that for us, but I’ve left it in place.
30+
Actually, you don’t need the subsequent lines after the hide: .filter(':first').show() as the triggerhashchange will handle that for us, but I’ve left it in place.
3131

3232
This process was our original code, and most of it needs to stay in place. The change in approach is this: instead of listening for clicks on the tabs, we listen for when the URL in the browser changes.
3333

0 commit comments

Comments
 (0)