From 09433e0bf06740573c0692309b124ae54d366142 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 19 Dec 2017 10:16:53 +0100 Subject: [PATCH] display existing tags in the prompt in drive --- www/common/common-interface.js | 2 +- www/common/cryptpad-common.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/common/common-interface.js b/www/common/common-interface.js index e4729a2c8..9323c0bc1 100644 --- a/www/common/common-interface.js +++ b/www/common/common-interface.js @@ -1,4 +1,4 @@ -/efine([ +define([ 'jquery', '/customize/messages.js', '/common/common-util.js', diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 883538607..0a2ead8f0 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -278,8 +278,8 @@ define([ cb(); }); }; - common.getPadAttribute = function (attr, cb) { - var href = Hash.getRelativeHref(window.location.href); + common.getPadAttribute = function (attr, cb, href) { + href = Hash.getRelativeHref(href || window.location.href); postMessage("GET_PAD_ATTRIBUTE", { href: href, attr: attr,