Skip to content

Commit

Permalink
Updating the poster
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielg committed Dec 23, 2008
1 parent 5e7209f commit e8eb86f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions public/javascripts/grumbler/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Grumble.Client = Class.create({
})

if (!doneFrame) {
console.log('Timed out. Waiting.')
window.setTimeout(callbackProcessor.bind(here, dataIframe, watchForName), 100);
} else {
var grumbleResponse = doneFrame.name.evalJSON();
Expand Down
2 changes: 2 additions & 0 deletions public/javascripts/grumbler/poster.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
onComplete: function(transport) {
window.name = '//'+passedData.doneName+';\n'+Object.toJSON(transport.responseText.evalJSON());
var newLoc = (decodeURIComponent(passedData.target).split('/', 3).concat(['favicon.ico#grumbleDone'])).join('/');
alert(window.name)
alert(newLoc)
window.location = newLoc;
}
});
Expand Down

0 comments on commit e8eb86f

Please sign in to comment.