mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 22:33:50 +00:00
Rename mws-load|save to mws-load|save-archive
This commit is contained in:
parent
3276703edd
commit
61b54125be
@ -1,9 +1,9 @@
|
|||||||
/*\
|
/*\
|
||||||
title: $:/plugins/tiddlywiki/multiwikiserver/mws-load.js
|
title: $:/plugins/tiddlywiki/multiwikiserver/mws-load-archive.js
|
||||||
type: application/javascript
|
type: application/javascript
|
||||||
module-type: command
|
module-type: command
|
||||||
|
|
||||||
Command to load tiddlers from a directory
|
Command to load archive of recipes, bags and tiddlers from a directory
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
(function(){
|
||||||
@ -13,7 +13,7 @@ Command to load tiddlers from a directory
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
name: "mws-load",
|
name: "mws-load-archive",
|
||||||
synchronous: true
|
synchronous: true
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ Command.prototype.execute = function() {
|
|||||||
var self = this;
|
var self = this;
|
||||||
// Check parameters
|
// Check parameters
|
||||||
if(this.params.length < 1) {
|
if(this.params.length < 1) {
|
||||||
return "Missing filename";
|
return "Missing pathname";
|
||||||
}
|
}
|
||||||
var archivePath = this.params[0];
|
var archivePath = this.params[0];
|
||||||
loadBackupArchive(archivePath);
|
loadBackupArchive(archivePath);
|
@ -1,9 +1,9 @@
|
|||||||
/*\
|
/*\
|
||||||
title: $:/plugins/tiddlywiki/multiwikiserver/mws-save.js
|
title: $:/plugins/tiddlywiki/multiwikiserver/mws-save-archive.js
|
||||||
type: application/javascript
|
type: application/javascript
|
||||||
module-type: command
|
module-type: command
|
||||||
|
|
||||||
Command to save tiddlers to a directory
|
Command to load an archive of recipes, bags and tiddlers to a directory
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
(function(){
|
||||||
@ -27,7 +27,7 @@ Command.prototype.execute = function() {
|
|||||||
var self = this;
|
var self = this;
|
||||||
// Check parameters
|
// Check parameters
|
||||||
if(this.params.length < 1) {
|
if(this.params.length < 1) {
|
||||||
return "Missing directory path";
|
return "Missing pathname";
|
||||||
}
|
}
|
||||||
var archivePath = this.params[0];
|
var archivePath = this.params[0];
|
||||||
saveArchive(archivePath);
|
saveArchive(archivePath);
|
Loading…
x
Reference in New Issue
Block a user