This commit is contained in:
Liang Ding 2014-09-12 09:32:20 +08:00
parent dec52e86e7
commit ff415b35b3
1 changed files with 12 additions and 12 deletions

View File

@ -35,7 +35,7 @@ outputWS.onmessage = function(e) {
if ('build' === data.cmd) { if ('build' === data.cmd) {
if ('run' === data.nextCmd) { if ('run' === data.nextCmd) {
var request = { var request = {
"executable": data.executable executable: data.executable
}; };
$.ajax({ $.ajax({
@ -91,8 +91,8 @@ var wide = {
}, },
saveFile: function() { saveFile: function() {
var request = { var request = {
"file": wide.curNode.path, file: wide.curNode.path,
"code": wide.curEditor.getValue() code: wide.curEditor.getValue()
}; };
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
@ -117,8 +117,8 @@ var wide = {
}, },
run: function() { run: function() {
var request = { var request = {
"file": wide.curNode.path, file: wide.curNode.path,
"code": wide.curEditor.getValue() code: wide.curEditor.getValue()
}; };
$.ajax({ $.ajax({
@ -135,7 +135,7 @@ var wide = {
}, },
goget: function() { goget: function() {
var request = { var request = {
"file": wide.curNode.path file: wide.curNode.path
}; };
$.ajax({ $.ajax({
@ -152,8 +152,8 @@ var wide = {
}, },
goinstall: function() { goinstall: function() {
var request = { var request = {
"file": wide.curNode.path, file: wide.curNode.path,
"code": wide.curEditor.getValue() code: wide.curEditor.getValue()
}; };
$.ajax({ $.ajax({
@ -173,10 +173,10 @@ var wide = {
var mode = wide.curNode.mode; var mode = wide.curNode.mode;
var request = { var request = {
"file": path, file: path,
"code": wide.curEditor.getValue(), code: wide.curEditor.getValue(),
"cursorLine": wide.curEditor.getCursor().line, cursorLine: wide.curEditor.getCursor().line,
"cursorCh": wide.curEditor.getCursor().ch cursorCh: wide.curEditor.getCursor().ch
}; };
switch (mode) { switch (mode) {