Merge pull request #23 from fedwiki/paul90/google-resize
Resize dialog if google selected
This commit is contained in:
commit
ad3d75e431
@ -93,7 +93,7 @@ update_footer = (ownerName, isAuthenticated) ->
|
|||||||
w = WinChan.open({
|
w = WinChan.open({
|
||||||
url: settings.dialogAddAltURL
|
url: settings.dialogAddAltURL
|
||||||
relay_url: settings.relayURL
|
relay_url: settings.relayURL
|
||||||
window_features: "menubar=0, location=0, resizable=0, scrollbars=0, status=0, dialog=1, width=700, height=375"
|
window_features: "menubar=0, location=0, resizable=0, scrollbars=1, status=0, dialog=1, width=700, height=375"
|
||||||
params: {}
|
params: {}
|
||||||
}, (err, r) ->
|
}, (err, r) ->
|
||||||
if err
|
if err
|
||||||
@ -142,7 +142,7 @@ update_footer = (ownerName, isAuthenticated) ->
|
|||||||
w = WinChan.open({
|
w = WinChan.open({
|
||||||
url: settings.dialogURL
|
url: settings.dialogURL
|
||||||
relay_url: settings.relayURL
|
relay_url: settings.relayURL
|
||||||
window_features: "menubar=0, location=0, resizable=0, scrollbars=0, status=0, dialog=1, width=700, height=375"
|
window_features: "menubar=0, location=0, resizable=0, scrollbars=1, status=0, dialog=1, width=700, height=375"
|
||||||
params: {}
|
params: {}
|
||||||
}, (err, r) ->
|
}, (err, r) ->
|
||||||
if err
|
if err
|
||||||
|
@ -319,7 +319,16 @@ module.exports = exports = (log, loga, argv) ->
|
|||||||
switch scheme
|
switch scheme
|
||||||
when "twitter" then schemeButtons.push({button: "<a href='/auth/twitter' class='scheme-button twitter-button'><span>Twitter</span></a>"})
|
when "twitter" then schemeButtons.push({button: "<a href='/auth/twitter' class='scheme-button twitter-button'><span>Twitter</span></a>"})
|
||||||
when "github" then schemeButtons.push({button: "<a href='/auth/github' class='scheme-button github-button'><span>Github</span></a>"})
|
when "github" then schemeButtons.push({button: "<a href='/auth/github' class='scheme-button github-button'><span>Github</span></a>"})
|
||||||
when "google" then schemeButtons.push({button: "<a href='/auth/google' class='scheme-button google-button'><span>Google</span></a>"})
|
when "google"
|
||||||
|
schemeButtons.push({button: "<a href='#' id='google' class='scheme-button google-button'><span>Google</span></a>
|
||||||
|
<script>
|
||||||
|
googleButton = document.getElementById('google');
|
||||||
|
googleButton.onclick = function(event) {
|
||||||
|
window.resizeBy(0, +300);
|
||||||
|
window.location = '/auth/google';
|
||||||
|
}
|
||||||
|
</script>"})
|
||||||
|
|
||||||
|
|
||||||
info = {
|
info = {
|
||||||
wikiName: cookies['wikiName']
|
wikiName: cookies['wikiName']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user