Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit a3e0a77

Browse files
committed
sharing long code snips requires a post
1 parent e56d202 commit a3e0a77

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

runestone/activecode/js/activecode.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ ActiveCode.prototype.createControls = function () {
311311
code: this.editor.getValue(),
312312
lang: this.language,
313313
};
314-
$.getJSON('/runestone/ajax/broadcast_code.json',
314+
$.post('/runestone/ajax/broadcast_code.json',
315315
data,
316316
function (status) {
317317
if (status.mess === 'success') {
@@ -320,7 +320,7 @@ ActiveCode.prototype.createControls = function () {
320320
alert("Sharing Failed");
321321
}
322322

323-
});
323+
}, 'json');
324324
}).bind(this));
325325
}
326326

@@ -2714,7 +2714,7 @@ ACFactory.createScratchActivecode = function() {
27142714
' <h4 class="modal-title">Scratch ActiveCode</h4>' +
27152715
' </div> ' +
27162716
' <div class="modal-body">' +
2717-
' <textarea data-component="activecode" id="' + divid + '" data-lang="'+ lang +'">' +
2717+
' <textarea data-component="activecode" data-codelens="true" id="' + divid + '" data-lang="'+ lang +'">' +
27182718
'\n' +
27192719
'\n' +
27202720
'\n' +

0 commit comments

Comments
 (0)