Skip to content

Commit 3d2863a

Browse files
author
terrill
committed
Tighten shorthand for editing kind in VTS table
1 parent 6c32d4a commit 3d2863a

6 files changed

Lines changed: 10 additions & 22 deletions

File tree

‎build/ableplayer.dist.js‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13009,15 +13009,11 @@
1300913009
else if (editedContent.substr(0,1) === 'd') {
1301013010
$(this).text('descriptions');
1301113011
}
13012-
// or first three characters
13013-
else if (editedContent.substr(0,3) === 'cap') {
13014-
$(this).text('captions');
13015-
}
13016-
else if (editedContent.substr(0,3) === 'cha') {
13012+
else if (editedContent.substr(0,2) === 'ch') {
1301713013
$(this).text('chapters');
1301813014
}
1301913015
else {
13020-
// if they really butchered it, assume 'captions'
13016+
// whatever else they types, assume 'captions'
1302113017
$(this).text('captions');
1302213018
}
1302313019
}

‎build/ableplayer.js‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13009,15 +13009,11 @@
1300913009
else if (editedContent.substr(0,1) === 'd') {
1301013010
$(this).text('descriptions');
1301113011
}
13012-
// or first three characters
13013-
else if (editedContent.substr(0,3) === 'cap') {
13014-
$(this).text('captions');
13015-
}
13016-
else if (editedContent.substr(0,3) === 'cha') {
13012+
else if (editedContent.substr(0,2) === 'ch') {
1301713013
$(this).text('chapters');
1301813014
}
1301913015
else {
13020-
// if they really butchered it, assume 'captions'
13016+
// whatever else they types, assume 'captions'
1302113017
$(this).text('captions');
1302213018
}
1302313019
}

‎build/ableplayer.min.css‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎build/ableplayer.min.js‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ableplayer",
3-
"version": "3.1.15",
3+
"version": "3.1.16",
44
"description": "fully accessible HTML5 media player",
55
"homepage": "http://ableplayer.github.io/ableplayer",
66
"bugs": "https://github.com/ableplayer/ableplayer/issues",

‎scripts/vts.js‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,11 @@
125125
else if (editedContent.substr(0,1) === 'd') {
126126
$(this).text('descriptions');
127127
}
128-
// or first three characters
129-
else if (editedContent.substr(0,3) === 'cap') {
130-
$(this).text('captions');
131-
}
132-
else if (editedContent.substr(0,3) === 'cha') {
128+
else if (editedContent.substr(0,2) === 'ch') {
133129
$(this).text('chapters');
134130
}
135131
else {
136-
// if they really butchered it, assume 'captions'
132+
// whatever else they types, assume 'captions'
137133
$(this).text('captions');
138134
}
139135
}

0 commit comments

Comments
 (0)