diff --git a/static/js/pandora/UI.js b/static/js/pandora/UI.js index e5b9bf8f..60ba1e67 100644 --- a/static/js/pandora/UI.js +++ b/static/js/pandora/UI.js @@ -182,7 +182,7 @@ pandora.UI = (function() { } }); }); - Ox.len(set) && pandora.api.setUI(set); + !pandora.isEmbedURL() && !pandora.isPrintURL() && Ox.len(set) && pandora.api.setUI(set); triggerEvents && Ox.forEach(trigger, function(val, key) { Ox.Log('UI', 'TRIGGER ' + key + ' ' + val); Ox.forEach(pandora.$ui, function(element) { diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index c1a61bcb..96586083 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -1193,6 +1193,13 @@ pandora.isEmbedURL = function(url) { && Ox.unserialize(hash.substr(2), true).embed === true }; +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 +}; + pandora.logEvent = function(data, event, element) { var element = this, handlers = self.eventHandlers ? self.eventHandlers[event] : [];