From 2958b34625001b1103b8ef239e7b7396143b30ca Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Mon, 24 Apr 2017 21:08:35 -0400 Subject: [PATCH] Interactive eval now uses language --- templates/editor.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/editor.html b/templates/editor.html index 8566de9..a9f3314 100755 --- a/templates/editor.html +++ b/templates/editor.html @@ -93,7 +93,7 @@ - @@ -260,9 +260,11 @@ $("#paste").val() : editor.getValue(); + var language = $('#language option').filter(':selected').val(); + $.ajax('/eval', { method: 'post', - data: {code: code}, + data: {code: code, language: language}, dataType: "json", success: function(data, status) { $('#eval').text(data.evalout);