|
@@ -135,8 +135,10 @@
|
|
|
var elems = document.querySelectorAll('input'), i;
|
|
var elems = document.querySelectorAll('input'), i;
|
|
|
var spinner = document.getElementById("spinner");
|
|
var spinner = document.getElementById("spinner");
|
|
|
var bigbox = humane.create({baseCls: 'humane-original', timeout: 150})
|
|
var bigbox = humane.create({baseCls: 'humane-original', timeout: 150})
|
|
|
|
|
+ var button = document.getElementById("button");
|
|
|
|
|
|
|
|
- document.getElementById("button").onclick = send;
|
|
|
|
|
|
|
+ button.style.display="none";
|
|
|
|
|
+ button.onclick = send;
|
|
|
bigbox.error = bigbox.spawn({addnCls: 'humane-bigbox-error'})
|
|
bigbox.error = bigbox.spawn({addnCls: 'humane-bigbox-error'})
|
|
|
|
|
|
|
|
function updateModel(){
|
|
function updateModel(){
|
|
@@ -173,6 +175,7 @@
|
|
|
user = data;
|
|
user = data;
|
|
|
user.hash=params["hash"];
|
|
user.hash=params["hash"];
|
|
|
updateModel();
|
|
updateModel();
|
|
|
|
|
+ button.style.display="block";
|
|
|
break;
|
|
break;
|
|
|
case 401:
|
|
case 401:
|
|
|
bigbox.error(data.mensaje, { timeout: 5000, clickToClose: true });
|
|
bigbox.error(data.mensaje, { timeout: 5000, clickToClose: true });
|