/
flickr.auth.min.js
3 lines (3 loc) · 1.25 KB
/
flickr.auth.min.js
1
2
3
function flickr_auth_dialog_request_write_perms(b,c){var d=abs_root_url+"account/flickr/auth?perms=write";if(c)d+="&redir="+encodeURIComponent(c);var a='<div id="modal_flickr_auth">';a+="<h3>Hey look, a modal dialog!</h3>";a+="<p>When you first signed up and authorized this application with Flickr you allowed it access your account with a <q>read</q> only token. ";a+='<span style="font-style:italic;">';if(b=="fave"){a+="In order to fave another users photos we need to bounce you back through Flickr ";
a+="again so that you can authorize us to access your account with a <q>write</q> token. "}else if(b=="geo"){a+="In order to be able to edit your photos we need to bounce you back through Flickr ";a+="again so that you can authorize us to access your account with a <q>write</q> token. "}a+="</span>";a+="You'll only have to do this once (or until you revoke the token itself <a href=\"http://www.flickr.com/services/auth/list.gne\">on Flickr</a>). Once you've approved the new token you will be sent back to this webpage.</p>";
a+='<div class="buttons"><button onclick="location.href=\''+d+"'; return false;\">Get started</button>  ";a+='<button onclick="$.modal.close(); return false;">Nevermind, maybe another time.</button></div>';a+="</div>";$.modal(a)};