Skip to content

Commit 65ccd13

Browse files
author
Mr Bot
committed
Automatic merge from release/3.8 -> release/3.8+1
* commit 'd33ea9b70ae8b394d1c1aeb13c6454ea39f12812': INT-15657: Fixing slow page load when bookmarking and sustansive are active
2 parents 23c861a + 1fa4923 commit 65ccd13

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

amd/build/accessibility.min.js

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

amd/build/accessibility.min.js.map

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

amd/src/accessibility.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,18 @@ define(['jquery'],
2828
return {
2929
init: function() {
3030
// Change pin button class on click to aria-pressed = "true".
31+
3132
$('.pinbutton.btn.btn-default').click(function() {
3233
$(this).attr('aria-pressed', 'true');
3334
});
3435

3536
// Add event handler to include space key as user's input to bookmark and substantive.
3637
var hsuforumThreadFlags = $('a.hsuforum-toggle-bookmark, a.hsuforum-toggle-substantive');
37-
38-
hsuforumThreadFlags.each(function(){
39-
hsuforumThreadFlags.off('keypress').on('keypress', function(e) {
40-
e.preventDefault();
41-
if (e.keyCode === 32) {
42-
e.target.click();
43-
}
44-
});
38+
hsuforumThreadFlags.off('keypress').on('keypress', function(e) {
39+
e.preventDefault();
40+
if (e.keyCode === 32) {
41+
e.target.click();
42+
}
4543
});
4644
}
4745
}

0 commit comments

Comments
 (0)