Commit 382410b9 authored by Pierre-Jean CHANCELLIER's avatar Pierre-Jean CHANCELLIER
Browse files

Update generate.js

parent 5a52cef5
......@@ -27,7 +27,9 @@
/*[ onLoad/onChange : Update IHM & params ]
===========================================================*/
var type = 'iframe';
function resetForm(){
type= 'iframe';
$('#type option[value="iframe"]').prop('selected', true);
$('#pubkey').val('');
$('#target').val('');
......@@ -56,8 +58,8 @@
$('#result').val('');
for (var param in params){params[param] = '';}
}
$(window).on('load',resetForm);
var type = 'iframe';
$(window).on('load',resetForm);
$('#type').on('change', function() {
type = this.value;
......
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