Commit 54e00be1 authored by HQ's avatar HQ
Browse files

Various improvements

parent 86225795
......@@ -27,7 +27,7 @@ sub jupyter {
Here you can manage basic security for your Jupyter Notebook.
</div>
<small>Set the password for your Jupyter notebook:</small>
<form class="passwordform" action="index.cgi?action=jupyterpassword&tab=jupyter" method="post" onsubmit="limitJupyterSpinner(); return false;" accept-charset="utf-8" id="jupyterpassword_form" autocomplete="off">
<form class="passwordform" action="index.cgi?action=jupyterpassword&tab=jupyter" method="post" onsubmit="limitJupyterSpinner(); \$('#jupyterpassword').val(''); return false;" accept-charset="utf-8" id="jupyterpassword_form" autocomplete="off">
<div class="row">
<div class="col-sm-10">
<input type="password" name="jupyterpassword" id="jupyterpassword" autocomplete="off" value="" class="password"">
......@@ -55,7 +55,6 @@ END
function limitJupyterSpinner(target) {
if (!target) target = "jupyterpassword";
\$("#" + target).val('');
\$("#" + target + "_button").prop("disabled", true ).html('Set! <i class="fa fa-cog fa-spin"></i>');
var ser = \$('#' + target + '_form').serialize();
\$.post('index.cgi?action=' + target + '&tab=jupyter', ser, function(data) {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment