diff --git a/app/options.py b/app/options.py index d42ac3c9..f42fc383 100644 --- a/app/options.py +++ b/app/options.py @@ -39,8 +39,8 @@ if form.getvalue('getcert') is not None and serv is not None: if form.getvalue('ssh_cert'): name = form.getvalue('name') - if not os.path.exists(os.getcwd())+'/keys/'): - os.makedirs(os.getcwd())+'/keys/') + if not os.path.exists(os.getcwd()+'/keys/'): + os.makedirs(os.getcwd()+'/keys/') ssh_keys = os.path.dirname(os.getcwd())+'/keys/'+name+'.pem' diff --git a/app/templates/login.html b/app/templates/login.html index 658fbb53..db619d96 100644 --- a/app/templates/login.html +++ b/app/templates/login.html @@ -12,4 +12,12 @@ + {% endblock %} \ No newline at end of file diff --git a/inc/script.js b/inc/script.js index 26859d0e..4bf96ca2 100644 --- a/inc/script.js +++ b/inc/script.js @@ -1216,7 +1216,18 @@ $( function() { type: "GET", success: function( data ) { if (data.indexOf('ok') != '-1') { - window.location.replace(ref); + $( "#dialog-confirm" ).dialog({ + resizable: false, + height: "auto", + width: 400, + modal: true, + title: "Support the project!", + buttons: { + "Ok": function() { + window.location.replace(ref); + } + } + }); } else { $('.alert-danger').remove(); $("#ajax").html(data);