From f0cb22f8e9e9e70d88e5340df5aa2aa50f550ca3 Mon Sep 17 00:00:00 2001 From: Aidaho12 Date: Fri, 24 Aug 2018 21:54:11 +0600 Subject: [PATCH] v3.2.1 Bugs --- app/options.py | 4 ++-- app/templates/login.html | 8 ++++++++ inc/script.js | 13 ++++++++++++- 3 files changed, 22 insertions(+), 3 deletions(-) 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);