temporarily fixed cancel button

This commit is contained in:
bill bittner 2017-10-02 18:58:59 -07:00
parent bd76e0eda9
commit 3a3ad9926b
2 changed files with 1 additions and 14 deletions

View file

@ -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>

View file

@ -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