summaryrefslogtreecommitdiffstats
path: root/theme
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2020-03-11 11:30:51 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-11 08:26:30 -0700
commit285fa8acbceebf5dc87c5c3befe42a2917a3b844 (patch)
tree142efc52856b5f4bded40867a917800c241ebfb6 /theme
parentcb28158b9abe10f08142f12f11ddbb5d23686fd5 (diff)
downloadsubsurface-285fa8acbceebf5dc87c5c3befe42a2917a3b844.tar.gz
Grammar: replaces 'indexes' by 'indices'
Grammar-nazi ran git grep -l 'indexes' | xargs sed -i '' -e 's/indexes/indices/g' to prevent future wincing when reading the source code. Unfortunatly, Qt itself is infected as in QModelIndexList QItemSelection::indexes() const Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'theme')
-rw-r--r--theme/list_lib.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js
index 05ac98d2a..4761e2bb5 100644
--- a/theme/list_lib.js
+++ b/theme/list_lib.js
@@ -1,9 +1,9 @@
-var itemsToShow = new Array(); //list of indexes to all dives to view
+var itemsToShow = new Array(); //list of indices to all dives to view
var items = new Array();
var start; //index of first element viewed in itemsToShow
var sizeofpage; //size of viewed page
var numberofwords = 0; //just for stats
-var olditemstoshow; //to reference the indexes to all dives if changed
+var olditemstoshow; //to reference the indices to all dives if changed
//////////////////////////////////
// //
// View Model //
@@ -40,8 +40,8 @@ function viewInPage()
}
/**
-*addHTML this Method puts the HTML of items of given indexes
-*@param {array} indexes array of indexes to put in HTML
+*addHTML this Method puts the HTML of items of given indices
+*@param {array} indices array of indices to put in HTML
*/
function updateView(start, end)
{
@@ -56,17 +56,17 @@ function updateView(start, end)
}
/**
-*addHTML this Method puts the HTML of items of given indexes
-*@param {array} indexes array of indexes to put in HTML
+*addHTML this Method puts the HTML of items of given indices
+*@param {array} indices array of indices to put in HTML
*/
-function addHTML(indexes)
+function addHTML(indices)
{
var divelist = document.getElementById('diveslist');
divelist.innerHTML = "";
- for (var i = 0; i < indexes.length; i++) {
- divelist.innerHTML += '<ul id="' + indexes[i] + '" onclick="toggleExpansion(event, this)"></ul>';
- expand(document.getElementById(indexes[i]));
- itemsToShow[indexes[i]].expanded = true;
+ for (var i = 0; i < indices.length; i++) {
+ divelist.innerHTML += '<ul id="' + indices[i] + '" onclick="toggleExpansion(event, this)"></ul>';
+ expand(document.getElementById(indices[i]));
+ itemsToShow[indices[i]].expanded = true;
};
}