removed shortcuts from antville. support of shortcut is now optional via zip module
This commit is contained in:
parent
1028d1e78d
commit
b458c2cab1
6 changed files with 1 additions and 91 deletions
|
@ -314,22 +314,6 @@ function input_macro(param) {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* function renders a shortcut
|
||||
*/
|
||||
function shortcut_macro(param) {
|
||||
// disable caching of any contentPart containing this macro
|
||||
req.data.cachePart = false;
|
||||
if (param && param.name) {
|
||||
var sc = res.handlers.site.shortcuts.get(param.name);
|
||||
if (sc)
|
||||
sc.renderContent(param.text);
|
||||
else
|
||||
return(param.name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* function renders a list of stories either contained
|
||||
* in a topic or from the story collection.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue