Save and use templates in pad, code and slides

This commit is contained in:
yflory
2017-04-07 18:20:03 +02:00
parent a13261abaa
commit 84d8615cf1
8 changed files with 145 additions and 6 deletions

View File

@@ -999,7 +999,10 @@ define([
// first, we must add it to FILES_DATA, so the input has to be an fileDAta object
var addTemplate = exp.addTemplate = function (fileData) {
if (workgroup) { return; }
if (typeof fileData !== "object" || !fileData.href || !fileData.title) { return; }
if (typeof fileData !== "object" || !fileData.href || !fileData.title) {
console.error("filedata object expected to add a new template");
return;
}
var href = fileData.href;
var test = files[FILES_DATA].some(function (o) {