mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-15 15:41:19 +00:00
#13 bug fixed
This commit is contained in:
@@ -1805,6 +1805,10 @@ Note.toggleReadOnly = function() {
|
||||
if(!note) {
|
||||
return;
|
||||
}
|
||||
|
||||
$('.created-time').html(goNowToDatetime(note.CreatedTime));
|
||||
$('.updated-time').html(goNowToDatetime(note.UpdatedTime));
|
||||
|
||||
if(note.readOnly) {
|
||||
return;
|
||||
}
|
||||
@@ -1816,9 +1820,6 @@ Note.toggleReadOnly = function() {
|
||||
});
|
||||
}
|
||||
|
||||
$('.created-time').html(goNowToDatetime(note.CreatedTime));
|
||||
$('.updated-time').html(goNowToDatetime(note.UpdatedTime));
|
||||
|
||||
note.readOnly = true;
|
||||
Note.readOnly = true;
|
||||
};
|
||||
|
@@ -778,7 +778,7 @@ LeaAce = {
|
||||
aceEditor.setOption("wrap", "free");
|
||||
aceEditor.setShowInvisibles(false);
|
||||
aceEditor.setAutoScrollEditorIntoView(true);
|
||||
aceEditor.setReadOnly(true);
|
||||
aceEditor.setReadOnly(Note.readOnly);
|
||||
aceEditor.setOption("maxLines", 10000);
|
||||
aceEditor.commands.addCommand({
|
||||
name: "undo",
|
||||
|
Reference in New Issue
Block a user