Skip to content

Commit 22c4b56

Browse files
lufficcrohandebsarkar
authored andcommitted
fix more authors bug (alshedivat#758)
* fix more authors bug * fix * add preview Co-authored-by: Rohan Deb Sarkar <[email protected]>
1 parent df33cef commit 22c4b56

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

_bibliography/papers.bib

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ @book{einstein1956investigations
99
author={Einstein, Albert},
1010
year={1956},
1111
publisher={Courier Corporation,},
12-
preview={brownian-motion.gif},
12+
preview={brownian-motion.gif}
1313
}
1414

1515
@article{einstein1950meaning,
@@ -77,5 +77,6 @@ @book{przibram1967letters
7777
title={Letters on wave mechanics},
7878
author={Einstein, Albert and Schrödinger, Erwin and Planck, Max and Lorentz, Hendrik Antoon and Przibram, Karl},
7979
year={1967},
80-
publisher={Vision}
80+
publisher={Vision},
81+
preview={wave-mechanics.gif}
8182
}

_layouts/bib.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@
103103
class="more-authors"
104104
title="click to view {{more_authors_hide}}"
105105
onclick="
106-
var element = $('span.more-authors');
106+
var element = $(this);
107+
element.attr('title', '');
107108
var more_authors_text = element.text() == '{{more_authors_hide}}' ? '{{more_authors_show}}' : '{{more_authors_hide}}';
108109
var cursorPosition = 0;
109110
var textAdder = setInterval(function(){
110111
element.text(more_authors_text.substring(0, cursorPosition + 1));
111-
element.attr('title', '');
112112
if (++cursorPosition == more_authors_text.length){
113113
clearInterval(textAdder);
114114
}
Loading

0 commit comments

Comments
 (0)