temporarily fixed cancel button
This commit is contained in:
parent
bd76e0eda9
commit
3a3ad9926b
2 changed files with 1 additions and 14 deletions
|
@ -27,7 +27,6 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- description input -->
|
<!-- description input -->
|
||||||
<textarea rows="3" id="publish-description" class="textarea textarea--large" placeholder="Description (optional)"></textarea>
|
<textarea rows="3" id="publish-description" class="textarea textarea--large" placeholder="Description (optional)"></textarea>
|
||||||
|
|
||||||
</div><div class="column column--5 align-content-top">
|
</div><div class="column column--5 align-content-top">
|
||||||
<div id="publish-status" class="row" hidden="true"></div>
|
<div id="publish-status" class="row" hidden="true"></div>
|
||||||
<div id="publish-progress-bar" class="row" hidden="true"></div>
|
<div id="publish-progress-bar" class="row" hidden="true"></div>
|
||||||
|
|
|
@ -8,19 +8,7 @@
|
||||||
|
|
||||||
<script type="text/javascript" >
|
<script type="text/javascript" >
|
||||||
function resetPublishArea () {
|
function resetPublishArea () {
|
||||||
// reset the drop zone
|
window.location.href = '/';
|
||||||
// remove staged files
|
|
||||||
stagedFiles = null;
|
|
||||||
// reset publish form inputs
|
|
||||||
document.getElementById('claim-name-input').value = '';
|
|
||||||
document.getElementById('publish-title').value = '';
|
|
||||||
document.getElementById('publish-description').value = '';
|
|
||||||
document.getElementById('publish-nsfw').checked = false;
|
|
||||||
// clear any errors
|
|
||||||
document.getElementById('input-error-file-selection').innerHTML = '';
|
|
||||||
document.getElementById('input-error-claim-name').innerHTML = '';
|
|
||||||
document.getElementById('input-error-publish-submit').innerHTML = '';
|
|
||||||
document.getElementById('input-success-claim-name').hidden = true;
|
|
||||||
}
|
}
|
||||||
/* publish functions */
|
/* publish functions */
|
||||||
// When a file is selected for publish, validate that file and
|
// When a file is selected for publish, validate that file and
|
||||||
|
|
Loading…
Reference in a new issue