Sort templates by usage in the PCS

This commit is contained in:
yflory
2018-04-13 18:52:55 +02:00
parent 52d6c9d468
commit ec0fc85b9f
5 changed files with 30 additions and 7 deletions

View File

@@ -424,6 +424,7 @@ define([
// it allows us to add owners and expiration time if it is a new file
var parsed = Hash.parsePadUrl(href);
if(!parsed) { throw new Error("Cannot get template hash"); }
postMessage("INCREMENT_TEMPLATE_USE", href);
Crypt.get(parsed.hash, function (err, val) {
if (err) { throw new Error(err); }
var p = Hash.parsePadUrl(window.location.href);