Some code formatting.

This commit is contained in:
Tomas Groth 2016-06-07 22:13:21 +02:00
parent ca2b466cfd
commit 0ee555cd84
1 changed files with 29 additions and 29 deletions

View File

@ -38,6 +38,7 @@ function storeTransposeValue(songId,transposeValueToSet) {
localStorage.setItem(songId + '_transposeValue', transposeValueToSet); localStorage.setItem(songId + '_transposeValue', transposeValueToSet);
} }
// NOTE: This function has a python equivalent in openlp/plugins/songs/lib/__init__.py - make sure to update both!
function transposeChord(chord, transposeValue, notation) { function transposeChord(chord, transposeValue, notation) {
var chordSplit = chord.replace('♭', 'b').split(/[\/\(\)]/); var chordSplit = chord.replace('♭', 'b').split(/[\/\(\)]/);
var transposedChord = '', note, notenumber, rest, currentChord; var transposedChord = '', note, notenumber, rest, currentChord;
@ -286,7 +287,6 @@ window.OpenLP = {
} }
} }
); );
// $('span.chord').each(function(){this.style.display="inline"});
} }
} }
$.ajaxSetup({ cache: false }); $.ajaxSetup({ cache: false });