Hide app creation form until button is clicked.

This commit is contained in:
Logan Hanks
2012-07-17 11:42:05 -07:00
parent df3e26873b
commit d1b46854f9
3 changed files with 11 additions and 1 deletions

View File

@@ -5907,3 +5907,5 @@ background: #eee;
bottom: 7px;
left: 100px;
}
#create-app { display: none; }

View File

@@ -6,6 +6,11 @@ $(function() {
app.find(".app-developers").remove();
app.find(".edit-app").slideToggle();
});
$("#create-app-button").click(
function() {
$(this).hide();
$("#create-app").fadeIn();
});
});
function app_revoked(elem, op) {

View File

@@ -167,9 +167,12 @@
%endif
<div class="edit-app-form">
<h1>${_("create application")}</h1>
<button id="create-app-button" class="submit-img">
${_("create application")}
</button>
<form method="post" action="/api/updateapp" class="pretty-form" id="create-app"
onsubmit="${"return post_form(this, 'updateapp', function(x) {return '%s'})" % _("creating...")}">
<h1>${_("create application")}</h1>
<input type="hidden" name="uh" value="${c.modhash}" />
<table class="content preftable">
<tr>