From e6cf1c8e8ac700a2b55f11eee9a7a7d2fcbbe85c Mon Sep 17 00:00:00 2001 From: saman bb Date: Fri, 21 Dec 2012 19:12:10 -0500 Subject: [PATCH] fixed iframe & spinner asset path. --- js/id/oauth.js | 2 +- js/id/ui/loading.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/id/oauth.js b/js/id/oauth.js index ed3404b88..487f94c59 100644 --- a/js/id/oauth.js +++ b/js/id/oauth.js @@ -79,7 +79,7 @@ iD.OAuth = function() { modal .select('.content') .append('iframe') - .attr({ width: 640, height: 550, frameborder: 'no' }) + .attr({ width: "100%", height: 550, frameborder: 'no' }) .attr('src', baseurl + '/oauth/authorize?' + ohauth.qsString({ oauth_token: resp.oauth_token, oauth_callback: location.href.replace('index.html', '') diff --git a/js/id/ui/loading.js b/js/id/ui/loading.js index 303d650b6..6ba7524e9 100644 --- a/js/id/ui/loading.js +++ b/js/id/ui/loading.js @@ -4,7 +4,7 @@ iD.loading = function(message) { var loadertext = modal.select('.content') .classed('loading-modal', true) .append('div').classed('modal-section',true); - loadertext.append('img').attr('class','loader').attr('src', '../img/loader.gif'); + loadertext.append('img').attr('class','loader').attr('src', '/img/loader.gif'); loadertext.append('h3').text(message || ''); return modal;