Fix history on workspaces, where you couldn't click on old tries.
Also allow editing the first and last line because you might need to do that to fix "old" tries that are already stored in the database. By "old" I mean yesterday. BUG=skia: R=fmalita@google.com, fmalita@chromium.org Author: jcgregorio@google.com Review URL: https://codereview.chromium.org/264833004 git-svn-id: http://skia.googlecode.com/svn/trunk@14516 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
70222fadf0
commit
1e2a0cba37
@ -186,12 +186,6 @@
|
||||
editor.setSize(editor.defaultCharWidth() * code.cols,
|
||||
editor.defaultTextHeight() * code.rows);
|
||||
|
||||
// Suppress changes to the first/last line (draw wrapper method)
|
||||
editor.on('beforeChange', function(cm, change) {
|
||||
if (change.from.line < 1 || change.from.line == cm.lineCount() - 1)
|
||||
change.cancel();
|
||||
});
|
||||
|
||||
function beginWait() {
|
||||
document.body.classList.add('waiting');
|
||||
run.disabled = true;
|
||||
@ -248,6 +242,7 @@
|
||||
endWait();
|
||||
body = JSON.parse(e.target.response);
|
||||
code.value = body.code;
|
||||
editor.setValue(body.code);
|
||||
img.src = '/i/'+body.hash+'.png';
|
||||
if (permalink) {
|
||||
permalink.href = '/c/' + body.hash;
|
||||
|
Loading…
Reference in New Issue
Block a user