kopia lustrzana https://github.com/c9/core
GH+3 Start MySQL and Apache automatically for WordPress users
rodzic
79b8380155
commit
626c3c996d
|
@ -94,7 +94,7 @@
|
||||||
"c9.ide.navigate": "#f358997d93",
|
"c9.ide.navigate": "#f358997d93",
|
||||||
"c9.ide.newresource": "#f1f0624768",
|
"c9.ide.newresource": "#f1f0624768",
|
||||||
"c9.ide.openfiles": "#28a4f5af16",
|
"c9.ide.openfiles": "#28a4f5af16",
|
||||||
"c9.ide.preview": "#d10e9d75e1",
|
"c9.ide.preview": "#a75e218d3e",
|
||||||
"c9.ide.preview.browser": "#c50007ebbc",
|
"c9.ide.preview.browser": "#c50007ebbc",
|
||||||
"c9.ide.preview.markdown": "#ab8d30ad9f",
|
"c9.ide.preview.markdown": "#ab8d30ad9f",
|
||||||
"c9.ide.pubsub": "#a85fb27eca",
|
"c9.ide.pubsub": "#a85fb27eca",
|
||||||
|
@ -111,6 +111,6 @@
|
||||||
"c9.ide.threewaymerge": "#229382aa0b",
|
"c9.ide.threewaymerge": "#229382aa0b",
|
||||||
"c9.ide.undo": "#b028bcb4d5",
|
"c9.ide.undo": "#b028bcb4d5",
|
||||||
"c9.ide.upload": "#0bd010d3dc",
|
"c9.ide.upload": "#0bd010d3dc",
|
||||||
"c9.ide.welcome": "#c370b3f191"
|
"c9.ide.welcome": "#0cb72cfc56"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -104,6 +104,8 @@ define(function(require, exports, module) {
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
||||||
function exec(command, editor, args, e) {
|
function exec(command, editor, args, e) {
|
||||||
|
var sCommand = command;
|
||||||
|
|
||||||
if (!editor || editor.fake)
|
if (!editor || editor.fake)
|
||||||
editor = emit("getEditor");
|
editor = emit("getEditor");
|
||||||
|
|
||||||
|
@ -119,8 +121,10 @@ define(function(require, exports, module) {
|
||||||
if (typeof command === 'string')
|
if (typeof command === 'string')
|
||||||
command = commands[command];
|
command = commands[command];
|
||||||
|
|
||||||
if (!command)
|
if (!command) {
|
||||||
|
console.warn("Could not find command ", sCommand);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (command.isAvailable && !command.isAvailable(editor, args, e))
|
if (command.isAvailable && !command.isAvailable(editor, args, e))
|
||||||
return; //Disable commands for other contexts
|
return; //Disable commands for other contexts
|
||||||
|
|
Ładowanie…
Reference in New Issue