Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: experimental/webtry/res/js/webtry.js

Issue 264833004: Fix history on workspaces, where you couldn't click on old tries. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/webtry/res/js/webtry.js
diff --git a/experimental/webtry/res/js/webtry.js b/experimental/webtry/res/js/webtry.js
index e8b17f43b2435ecf4a9b0b5c258bf9696095cc42..de81df4d709e80583db193da75ac554c342c9878 100644
--- a/experimental/webtry/res/js/webtry.js
+++ b/experimental/webtry/res/js/webtry.js
@@ -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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698