Skip to content

Commit

Permalink
Merge pull request scaron#85 from seyDoggy/remove-bang-from-shebang
Browse files Browse the repository at this point in the history
removed bangs from shebangs
  • Loading branch information
scaron committed Mar 7, 2012
2 parents 5bbaee0 + dc7a6bc commit 0e0aee6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/jquery.prettyPhoto.js
Original file line number Diff line number Diff line change
Expand Up @@ -885,17 +885,17 @@

function getHashtag(){
url = location.href;
hashtag = (url.indexOf('#!') !== -1) ? decodeURI(url.substring(url.indexOf('#!')+2,url.length)) : false;
hashtag = (url.indexOf('#') !== -1) ? decodeURI(url.substring(url.indexOf('#')+2,url.length)) : false;
return hashtag;
};

function setHashtag(){
if(typeof theRel == 'undefined') return; // theRel is set on normal calls, it's impossible to deeplink using the API
location.hash = '!' + theRel + '/'+rel_index+'/';
location.hash = theRel + '/'+rel_index+'/';
};

function clearHashtag(){
if ( location.href.indexOf('#!prettyPhoto') !== -1 ) location.hash = "!prettyPhoto";
if ( location.href.indexOf('#prettyPhoto') !== -1 ) location.hash = "prettyPhoto";
}

function getParam(name,url){
Expand Down

0 comments on commit 0e0aee6

Please sign in to comment.