update isEmbedURL and isPrintURL methods
This commit is contained in:
parent
030873ec1f
commit
051bc140e8
1 changed files with 2 additions and 4 deletions
|
@ -1311,15 +1311,13 @@ pandora.isClipView = function(view, item) {
|
||||||
pandora.isEmbedURL = function(url) {
|
pandora.isEmbedURL = function(url) {
|
||||||
url = url || document.location.href;
|
url = url || document.location.href;
|
||||||
var hash = Ox.parseURL(url).hash;
|
var hash = Ox.parseURL(url).hash;
|
||||||
return hash.substr(0, 2) == '#?'
|
return /^#embed(\?.*?)?$/.test(hash);
|
||||||
&& Ox.unserialize(hash.substr(2), true).embed === true
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pandora.isPrintURL = function(url) {
|
pandora.isPrintURL = function(url) {
|
||||||
url = url || document.location.href;
|
url = url || document.location.href;
|
||||||
var hash = Ox.parseURL(url).hash;
|
var hash = Ox.parseURL(url).hash;
|
||||||
return hash.substr(0, 2) == '#?'
|
return /^#print(\?.*?)?$/.test(hash);
|
||||||
&& Ox.unserialize(hash.substr(2), true).print === true
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pandora.logEvent = function(data, event, element) {
|
pandora.logEvent = function(data, event, element) {
|
||||||
|
|
Loading…
Reference in a new issue