mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-04 20:45:58 +01:00
Change local storage key
This commit is contained in:
@@ -83,7 +83,7 @@ $(function(){
|
||||
var editor = ace.edit("editor");
|
||||
editor.setTheme("ace/theme/monokai");
|
||||
|
||||
if(localStorage.getItem('gitbucket.editor.wrap') == 'true'){
|
||||
if(localStorage.getItem('gitbucket:editor:wrap') == 'true'){
|
||||
editor.getSession().setUseWrapMode(true);
|
||||
$('#wrap').val('true');
|
||||
}
|
||||
@@ -110,10 +110,10 @@ $(function(){
|
||||
$('#wrap').change(function(){
|
||||
if($('#wrap option:selected').val() == 'true'){
|
||||
editor.getSession().setUseWrapMode(true);
|
||||
localStorage.setItem('gitbucket.editor.wrap', 'true');
|
||||
localStorage.setItem('gitbucket:editor:wrap', 'true');
|
||||
} else {
|
||||
editor.getSession().setUseWrapMode(false);
|
||||
localStorage.setItem('gitbucket.editor.wrap', 'false');
|
||||
localStorage.setItem('gitbucket:editor:wrap', 'false');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user