tweak mode_creator
This commit is contained in:
parent
bcc2cd9b68
commit
72edcd332d
1 changed files with 0 additions and 2 deletions
|
|
@ -53,7 +53,6 @@ util.bindDropdown("doc", function(value) {
|
||||||
doclist.loadDoc(value, function(session) {
|
doclist.loadDoc(value, function(session) {
|
||||||
if (session) {
|
if (session) {
|
||||||
editor2.setSession(session);
|
editor2.setSession(session);
|
||||||
session.getUndoManager().markClean();
|
|
||||||
updateSaveButtonState(null, editor2);
|
updateSaveButtonState(null, editor2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -81,7 +80,6 @@ util.bindDropdown(modeEl, function(value) {
|
||||||
});
|
});
|
||||||
|
|
||||||
editor1.setSession(modeSessions[value]);
|
editor1.setSession(modeSessions[value]);
|
||||||
session.getUndoManager().markClean();
|
|
||||||
updateSaveButtonState(null, editor1);
|
updateSaveButtonState(null, editor1);
|
||||||
schedule();
|
schedule();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue