update isEmbedURL and isPrintURL methods

This commit is contained in:
rolux 2013-07-12 16:05:47 +00:00
parent 030873ec1f
commit 051bc140e8

View file

@ -1311,15 +1311,13 @@ pandora.isClipView = function(view, item) {
pandora.isEmbedURL = function(url) {
url = url || document.location.href;
var hash = Ox.parseURL(url).hash;
return hash.substr(0, 2) == '#?'
&& Ox.unserialize(hash.substr(2), true).embed === true
return /^#embed(\?.*?)?$/.test(hash);
};
pandora.isPrintURL = function(url) {
url = url || document.location.href;
var hash = Ox.parseURL(url).hash;
return hash.substr(0, 2) == '#?'
&& Ox.unserialize(hash.substr(2), true).print === true
return /^#print(\?.*?)?$/.test(hash);
};
pandora.logEvent = function(data, event, element) {