From 9eedfe62e63cffd95349628681ab975ca680b101 Mon Sep 17 00:00:00 2001 From: Heather Miller Date: Tue, 18 Jul 2017 08:19:59 +0200 Subject: [PATCH] Fixes #702 --- _includes/scastie.html | 2 +- resources/js/functions.js | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/_includes/scastie.html b/_includes/scastie.html index 9dbfba9f3..8757b6c43 100644 --- a/_includes/scastie.html +++ b/_includes/scastie.html @@ -26,4 +26,4 @@

Run Scala in your browser

-m \ No newline at end of file + diff --git a/resources/js/functions.js b/resources/js/functions.js index fcb2ebeb6..98e154c35 100644 --- a/resources/js/functions.js +++ b/resources/js/functions.js @@ -125,7 +125,7 @@ $('#scaladex-search').autocomplete({ transformResult: function(response) { return { suggestions: $.map(response, function(dataItem) { - return { + return { value: dataItem.organization + " / " + dataItem.repository, data: dataItem }; @@ -199,7 +199,7 @@ $(document).ready(function() { // Scala in the browser $(document).ready(function() { if ($("#scastie-textarea").length) { - var editor = + var editor = CodeMirror.fromTextArea( document.getElementById("scastie-textarea"), { @@ -224,8 +224,7 @@ $(document).ready(function() { function run(){ console.log("run"); - // var scastieBaseUrl = "https://scastie.scala-lang.org"; - var scastieBaseUrl = "http://localhost:9000"; + var scastieBaseUrl = "https://scastie.scala-lang.org"; $.ajax( {