mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Hide app creation form until button is clicked.
This commit is contained in:
@@ -5907,3 +5907,5 @@ background: #eee;
|
||||
bottom: 7px;
|
||||
left: 100px;
|
||||
}
|
||||
|
||||
#create-app { display: none; }
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user