Ran make lint
and fixed the issues it complained about.
This commit is contained in:
parent
6ba38daf56
commit
bbd2bc37d6
@ -573,22 +573,29 @@ var PDFView = {
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
pinSidebar: function pdfViewPinSidebar() {
|
||||
|
||||
var sidebar = document.getElementById("sidebar");
|
||||
var pinIcon = document.getElementById("pinIcon");
|
||||
|
||||
sidebar.className = sidebar.className.replace( /(?:^|\s)released(?!\S)/ , '' );
|
||||
sidebar.className = sidebar.className.replace( /(?:^|\s)pinned(?!\S)/ , '' );
|
||||
pinIcon.className = pinIcon.className.replace( /(?:^|\s)released(?!\S)/ , '' );
|
||||
pinIcon.className = pinIcon.className.replace( /(?:^|\s)pinned(?!\S)/ , '' );
|
||||
|
||||
var newClass = this.pinState ? " pinned" : " released";
|
||||
|
||||
pinSidebar: function pdfViewPinSidebar() {
|
||||
var sidebar = document.getElementById('sidebar');
|
||||
var pinIcon = document.getElementById('pinIcon');
|
||||
|
||||
sidebar.className = sidebar.className.replace(
|
||||
/(?:^|\s)released(?!\S)/ ,
|
||||
'');
|
||||
sidebar.className = sidebar.className.replace(
|
||||
/(?:^|\s)pinned(?!\S)/ ,
|
||||
'');
|
||||
pinIcon.className = pinIcon.className.replace(
|
||||
/(?:^|\s)released(?!\S)/ ,
|
||||
'');
|
||||
pinIcon.className = pinIcon.className.replace(
|
||||
/(?:^|\s)pinned(?!\S)/ ,
|
||||
'');
|
||||
|
||||
var newClass = this.pinState ? ' pinned' : ' released';
|
||||
|
||||
sidebar.className += newClass;
|
||||
pinIcon.className += newClass;
|
||||
|
||||
|
||||
this.pinState = !this.pinState;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user