Skip to content

Commit 3ced08f

Browse files
typo fixed
1 parent 3320f8e commit 3ced08f

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

csp/webTerminal/js/application.js.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ var application = new function() {
100100
"<td>Every occurrence of {definition} in input will be replaced with {redefinition}</td>" +
101101
"</tr>" +
102102
"<tr>" +
103-
"<td class=\"info\">{code} /favourite {slot}</td>" +
104-
"<td>Add code to favorites. You can load code anytime by calling /favourite {slot}</td>" +
103+
"<td class=\"info\">{code} /favorite {slot}</td>" +
104+
"<td>Add code to favorites. You can load code anytime by calling /favorite {slot}</td>" +
105105
"</tr>" +
106106
"<tr>" +
107107
"<td class=\"info\">{/tail|/watch} {fileFullPath|globalName}</td>" +
@@ -227,11 +227,11 @@ var application = new function() {
227227
"file path or global name. Let's imagine that you have file " + parser.highlightHTML("C:\\temp\\log.txt") + " or global " +
228228
parser.highlightHTML("^myLog") + ". Then you can call " + parser.highlightHTML("/tail ^myLog") + " or " +
229229
parser.highlightHTML("/watch C:\\temp\\log.txt") + " and look for their's changes.</p>"; break;
230-
case 6: s = "<p>And finally try to use " + parser.highlightHTML("/favourite") + " command: write a piece of " +
231-
"code or whole program, test it and then join " + parser.highlightHTML("/favourite 1") + " to the end " +
232-
"of command line. This will remember you command to slot 1. Then simply call " + parser.highlightHTML("/favourite 1") +
230+
case 6: s = "<p>And finally try to use " + parser.highlightHTML("/favorite") + " command: write a piece of " +
231+
"code or whole program, test it and then join " + parser.highlightHTML("/favorite 1") + " to the end " +
232+
"of command line. This will remember you command to slot 1. Then simply call " + parser.highlightHTML("/favorite 1") +
233233
" (with one argument) and use use saved code again.</p><p>And that's the end of out tutorial! Do not forget " +
234-
"to " + parser.highlightHTML("/save") + " your history and favourites, or just use \"autosave\" option " +
234+
"to " + parser.highlightHTML("/save") + " your history and favorites, or just use \"autosave\" option " +
235235
"available in settings.</p>"; break;
236236
default: s = "<p>Enjoy!</p>";
237237
}

csp/webTerminal/js/terminal.js.xml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ var terminal = new function() {
100100
101101
storage.set("history", terminal.history.export());
102102
storage.set("language", terminal.language.export());
103-
storage.set("favourites", terminal.favourites.export());
103+
storage.set("favorites", terminal.favorites.export());
104104
storage.set("definitions", terminal.definitions.export());
105105
storage.set("settings", settings.export());
106106
storage.modifySave();
@@ -123,8 +123,8 @@ var terminal = new function() {
123123
settings.import(storage.get("settings"));
124124
terminal.history.import(storage.get("history"));
125125
terminal.language.import(storage.get("language"));
126-
var favs = storage.get("favourites");
127-
if (favs) terminal.favourites.import(favs);
126+
var favs = storage.get("favorites");
127+
if (favs) terminal.favorites.import(favs);
128128
var defs = storage.get("definitions");
129129
if (defs) terminal.definitions.import(defs);
130130
if (!settings.get_cleanStartup()) terminal.output.write("Terminal state has been loaded.");
@@ -145,7 +145,7 @@ var terminal = new function() {
145145
146146
};
147147
148-
this.favourites = new function() {
148+
this.favorites = new function() {
149149
150150
var commands = {};
151151
@@ -154,7 +154,7 @@ var terminal = new function() {
154154
};
155155
156156
/**
157-
* Returns favourite command.
157+
* Returns favorite command.
158158
*
159159
* @param index
160160
* @returns {string}
@@ -166,19 +166,19 @@ var terminal = new function() {
166166
167167
this.export = function() {
168168
return {
169-
"!export:favourites": true,
169+
"!export:favorites": true,
170170
commands: commands
171171
};
172172
};
173173
174-
this.import = function(favouritesImportObject) {
175-
if (!(typeof favouritesImportObject === "object" &&
176-
favouritesImportObject.hasOwnProperty("!export:favourites")) &&
177-
favouritesImportObject.commands) {
178-
log.write("Wrong object to import as favourites import object: ", favouritesImportObject);
174+
this.import = function(favoritesImportObject) {
175+
if (!(typeof favoritesImportObject === "object" &&
176+
favoritesImportObject.hasOwnProperty("!export:favorites")) &&
177+
favoritesImportObject.commands) {
178+
log.write("Wrong object to import as favorites import object: ", favoritesImportObject);
179179
return;
180180
}
181-
commands = favouritesImportObject.commands;
181+
commands = favoritesImportObject.commands;
182182
};
183183
184184
};
@@ -435,17 +435,17 @@ var terminal = new function() {
435435
server.submit(terminal.serverActions.WATCH, name);
436436
},
437437
438-
"favourite": function(code, slot) {
438+
"favorite": function(code, slot) {
439439
var d = code * 1;
440440
if (!isNaN(d)) {
441-
terminal.input.set(terminal.favourites.get(d));
441+
terminal.input.set(terminal.favorites.get(d));
442442
terminal.input.moveCaretToEnd();
443443
return;
444444
}
445-
if (!code) { terminal.output.write("Enter command to favourite."); return;}
445+
if (!code) { terminal.output.write("Enter command to favorite."); return;}
446446
slot = slot * 1;
447447
if (slot && slot > -1 && slot < 10) {
448-
terminal.favourites.add(slot, code);
448+
terminal.favorites.add(slot, code);
449449
terminal.output.write("Command saved to slot " + slot + ".");
450450
} else terminal.output.write("Choose correct slot: 0-9 available.")
451451
},
@@ -1625,7 +1625,7 @@ var terminal = new function() {
16251625
"/siege": 0,
16261626
"/define": 0,
16271627
"/tail": 0,
1628-
"/favourite": 0,
1628+
"/favorite": 0,
16291629
"/watch": 0,
16301630
"/tip": 1,
16311631
"/echo": 0

0 commit comments

Comments
 (0)