Skip to content

Commit

Permalink
workaround chrome js bug
Browse files Browse the repository at this point in the history
  • Loading branch information
leifj committed Jan 26, 2015
1 parent 089ace5 commit 3459ea8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/pyff/site/static/js/pyff.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,14 @@ $(document).ready(function() {
params = $.deparam.querystring();
var qs;
//console.log(entityID);
qs = params['return'].indexOf('?') === -1 ? '?' : '&';
var returnIDParam = params['returnIDParam'];
if (!returnIDParam) {
returnIDParam = "entityID";
if (params['return']) {
qs = params['return'].indexOf('?') === -1 ? '?' : '&';
var returnIDParam = params['returnIDParam'];
if (!returnIDParam) {
returnIDParam = "entityID";
}
window.location = params['return'] + qs + returnIDParam + '=' + entityID;
}
window.location = params['return'] + qs + returnIDParam + '=' + entityID;
return false;
}

Expand Down

0 comments on commit 3459ea8

Please sign in to comment.