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