@@ -100,7 +100,7 @@ var terminal = new function() {
100
100
101
101
storage.set("history", terminal.history.export());
102
102
storage.set("language", terminal.language.export());
103
- storage.set("favourites ", terminal.favourites .export());
103
+ storage.set("favorites ", terminal.favorites .export());
104
104
storage.set("definitions", terminal.definitions.export());
105
105
storage.set("settings", settings.export());
106
106
storage.modifySave();
@@ -123,8 +123,8 @@ var terminal = new function() {
123
123
settings.import(storage.get("settings"));
124
124
terminal.history.import(storage.get("history"));
125
125
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);
128
128
var defs = storage.get("definitions");
129
129
if (defs) terminal.definitions.import(defs);
130
130
if (!settings.get_cleanStartup()) terminal.output.write("Terminal state has been loaded.");
@@ -145,7 +145,7 @@ var terminal = new function() {
145
145
146
146
};
147
147
148
- this.favourites = new function() {
148
+ this.favorites = new function() {
149
149
150
150
var commands = {};
151
151
@@ -154,7 +154,7 @@ var terminal = new function() {
154
154
};
155
155
156
156
/**
157
- * Returns favourite command.
157
+ * Returns favorite command.
158
158
*
159
159
* @param index
160
160
* @returns {string}
@@ -166,19 +166,19 @@ var terminal = new function() {
166
166
167
167
this.export = function() {
168
168
return {
169
- "!export:favourites ": true,
169
+ "!export:favorites ": true,
170
170
commands: commands
171
171
};
172
172
};
173
173
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 );
179
179
return;
180
180
}
181
- commands = favouritesImportObject .commands;
181
+ commands = favoritesImportObject .commands;
182
182
};
183
183
184
184
};
@@ -435,17 +435,17 @@ var terminal = new function() {
435
435
server.submit(terminal.serverActions.WATCH, name);
436
436
},
437
437
438
- "favourite ": function(code, slot) {
438
+ "favorite ": function(code, slot) {
439
439
var d = code * 1;
440
440
if (!isNaN(d)) {
441
- terminal.input.set(terminal.favourites .get(d));
441
+ terminal.input.set(terminal.favorites .get(d));
442
442
terminal.input.moveCaretToEnd();
443
443
return;
444
444
}
445
- if (!code) { terminal.output.write("Enter command to favourite ."); return;}
445
+ if (!code) { terminal.output.write("Enter command to favorite ."); return;}
446
446
slot = slot * 1;
447
447
if (slot && slot > -1 && slot < 10) {
448
- terminal.favourites .add(slot, code);
448
+ terminal.favorites .add(slot, code);
449
449
terminal.output.write("Command saved to slot " + slot + ".");
450
450
} else terminal.output.write("Choose correct slot: 0-9 available.")
451
451
},
@@ -1625,7 +1625,7 @@ var terminal = new function() {
1625
1625
"/siege": 0,
1626
1626
"/define": 0,
1627
1627
"/tail": 0,
1628
- "/favourite ": 0,
1628
+ "/favorite ": 0,
1629
1629
"/watch": 0,
1630
1630
"/tip": 1,
1631
1631
"/echo": 0
0 commit comments