Here is the patch that fixes the spelling mistake.

On Wed, Jun 17, 2015 at 7:25 PM, Dirk Hohndel <d...@hohndel.org> wrote:
>
> On Wed, Jun 17, 2015 at 07:22:50PM +0200, Gehad Elrobey wrote:
> > Yes, .target is working here on chromium and yes I meant Expansion I ll
> > refactor that sorry for the wrong spelling.
>
> No worries. 90+% of us are non-native speakers :-)
>
> I have added a small patch to fix the .target issue and was waiting for
> your confirmation. I'll push that in a second - please do your refactoring
> on top of that :-)
>
> /D


-- 
regards,
>
> Gehad
From 0e65ba49e9de182ca2babe94625493fde2b80216 Mon Sep 17 00:00:00 2001
From: Gehad elrobey <gehadelro...@gmail.com>
Date: Thu, 18 Jun 2015 15:34:11 +0200
Subject: [PATCH] HTML: Fix spelling mistake

Signed-off-by: Gehad elrobey <gehadelro...@gmail.com>
---
 theme/list_lib.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/theme/list_lib.js b/theme/list_lib.js
index 4810850..ed01e68 100644
--- a/theme/list_lib.js
+++ b/theme/list_lib.js
@@ -47,7 +47,7 @@ function updateView(start, end)
 	var divelist = document.getElementById('diveslist');
 	divelist.innerHTML = "";
 	for (var i = start; i <= end; i++) {
-		divelist.innerHTML += '<ul id="' + itemsToShow[i] + '" onclick="toggleExpantion(event, this)"></ul>';
+		divelist.innerHTML += '<ul id="' + itemsToShow[i] + '" onclick="toggleExpansion(event, this)"></ul>';
 		expand(document.getElementById(itemsToShow[i]));
 		items[itemsToShow[i]].expanded = true;
 	};
@@ -63,7 +63,7 @@ function addHTML(indexes)
 	var divelist = document.getElementById('diveslist');
 	divelist.innerHTML = "";
 	for (var i = 0; i < indexes.length; i++) {
-		divelist.innerHTML += '<ul id="' + indexes[i] + '" onclick="toggleExpantion(event, this)"></ul>';
+		divelist.innerHTML += '<ul id="' + indexes[i] + '" onclick="toggleExpansion(event, this)"></ul>';
 		expand(document.getElementById(indexes[i]));
 		itemsToShow[indexes[i]].expanded = true;
 	};
@@ -177,7 +177,7 @@ function setNumberOfDives(e)
 	viewInPage();
 }
 
-function toggleExpantion(e, ul)
+function toggleExpansion(e, ul)
 {
 	if (e.target.localName === "a" ) {
 		return;
@@ -794,7 +794,7 @@ function expand_trip(trip)
 	trips[trip].expanded = true;
 	var d = document.getElementById("trip_dive_list_" + trip);
 	for (var j in trips[trip].dives) {
-		d.innerHTML += '<ul id="' + trips[trip].dives[j].number + '" onclick="toggleExpantion(event, this)" onmouseover="highlight(this)"' +
+		d.innerHTML += '<ul id="' + trips[trip].dives[j].number + '" onclick="toggleExpansion(event, this)" onmouseover="highlight(this)"' +
 			       ' onmouseout="unhighlight(this)">' + getlimited(trips[trip].dives[j]) + '</ul>';
 	}
 }
-- 
2.4.4

_______________________________________________
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to