enableSubmit: function() {
$("geom_submit").disabled = false;
+ $("geom_accept").disabled = false;
this.status = "partial";
return this;
},
disableSubmit: function() {
$("geom_submit").blur();
$("geom_submit").disabled = true;
+ $("geom_accept").blur();
+ $("geom_accept").disabled = true;
this.status = "partial";
return this;
}
this.messenger.hide();
this.editMode();
this.mode = 'create';
- SyjSaveUI.enableSubmit();
}.bind(this));
}
$$("#user_termsofuse_anchor, #geom_termsofuse_anchor").invoke('observe', "click", function(evt) {
if (!this.toubox) {
- $("termsofusearea").show();
- $("termsofuseiframe").setAttribute("src", evt.target.href);
this.toubox = new SimpleBox($("termsofusearea"), {
closeMethods: ["onescapekey", "onouterclick", "onbutton"]
});
}
this.toubox.show();
+ if (!$("termsofuseiframe").getAttribute("src")) {
+ $("termsofusearea").show();
+ $("termsofuseiframe").setAttribute("src", evt.target.href);
+ }
evt.stop();
}.bindAsEventListener(this));
}
}.bindAsEventListener(this));
- $("account-info").hide();
- $("account-info-bullet").observe('click', function(evt) {
- var elt = $("account-info");
- if (elt.visible()) {
- evt.target.src = "icons/bullet_arrow_right.png";
- elt.hide();
- } else {
- evt.target.src = "icons/bullet_arrow_down.png";
- elt.show();
- }
- evt.stop();
- });
+ $('account-create-anchor').insert({after: new Toggler('account-info').element});
},
presubmit: function() {