From ff415b35b30d336b78776c39e71bbc45e78dc673 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 12 Sep 2014 09:32:20 +0800 Subject: [PATCH] . --- static/js/wide.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/static/js/wide.js b/static/js/wide.js index b2757d1..31e624e 100644 --- a/static/js/wide.js +++ b/static/js/wide.js @@ -35,7 +35,7 @@ outputWS.onmessage = function(e) { if ('build' === data.cmd) { if ('run' === data.nextCmd) { var request = { - "executable": data.executable + executable: data.executable }; $.ajax({ @@ -91,8 +91,8 @@ var wide = { }, saveFile: function() { var request = { - "file": wide.curNode.path, - "code": wide.curEditor.getValue() + file: wide.curNode.path, + code: wide.curEditor.getValue() }; $.ajax({ type: 'POST', @@ -117,8 +117,8 @@ var wide = { }, run: function() { var request = { - "file": wide.curNode.path, - "code": wide.curEditor.getValue() + file: wide.curNode.path, + code: wide.curEditor.getValue() }; $.ajax({ @@ -135,7 +135,7 @@ var wide = { }, goget: function() { var request = { - "file": wide.curNode.path + file: wide.curNode.path }; $.ajax({ @@ -152,8 +152,8 @@ var wide = { }, goinstall: function() { var request = { - "file": wide.curNode.path, - "code": wide.curEditor.getValue() + file: wide.curNode.path, + code: wide.curEditor.getValue() }; $.ajax({ @@ -173,10 +173,10 @@ var wide = { var mode = wide.curNode.mode; var request = { - "file": path, - "code": wide.curEditor.getValue(), - "cursorLine": wide.curEditor.getCursor().line, - "cursorCh": wide.curEditor.getCursor().ch + file: path, + code: wide.curEditor.getValue(), + cursorLine: wide.curEditor.getCursor().line, + cursorCh: wide.curEditor.getCursor().ch }; switch (mode) {