Skip to content

Commit

Permalink
Don't use the same local storage for reading GABC header and psalm GA…
Browse files Browse the repository at this point in the history
…BC header
  • Loading branch information
Benjamin Bloomfield committed Jan 7, 2019
1 parent 22c6001 commit 430e3f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions readings.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ function updateEditor(forceGabcUpdate,_syl) {
favor: 'termination'
}) + gabc;
}
var header = getHeader(localStorage.psalmHeader||'');
var header = getHeader(localStorage.readingHeader||'');
delete header.name;
delete header.mode;
header["centering-scheme"] = selLang;
gabc=header+ '(' + _clef + ') ' + gabc;
$("#txtGabc").val(gabc);
Expand Down Expand Up @@ -384,7 +386,7 @@ function versesFilename(format,psalmNum,tone,ending,solemn){
function updateLocalHeader() {
var gabc = $("#txtGabc").val();
var header=getHeader(gabc);
localStorage.psalmHeader=header;
localStorage.readingHeader=header;
}
function windowResized(){
var $cp = $("#chant-parent2");
Expand Down

0 comments on commit 430e3f6

Please sign in to comment.