pull/1055/head
Louis Vézina 4 years ago
parent dc043176ee
commit 8efd49febe

@ -206,7 +206,7 @@
<input type="hidden" id="upload_audioLanguage" name="audioLanguage" value=""/> <input type="hidden" id="upload_audioLanguage" name="audioLanguage" value=""/>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="submit" id="upload_save_button" class="btn btn-info">Save</button> <span id="upload_save_button_span"><button type="submit" id="upload_save_button" class="btn btn-info">Save</button></span>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
</div> </div>
</form> </form>
@ -826,7 +826,9 @@
}); });
$('#uploadModal').on('hidden.bs.modal', function () { $('#uploadModal').on('hidden.bs.modal', function () {
$(this).find('form')[0].reset(); $(this).find('form').trigger('reset');
$('.custom-file-label').text('Choose file')
$('#upload_save_button_span').html('<button type="submit" id="upload_save_button" class="btn btn-info">Save</button>');
}); });
events.on('event', function (event) { events.on('event', function (event) {

@ -214,7 +214,7 @@
<input type="hidden" id="upload_audioLanguage" name="audioLanguage" value="" /> <input type="hidden" id="upload_audioLanguage" name="audioLanguage" value="" />
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="submit" id="upload_save_button" class="btn btn-info">Save</button> <span id="upload_save_button_span"><button type="submit" id="upload_save_button" class="btn btn-info">Save</button></span>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
</div> </div>
</form> </form>
@ -686,7 +686,9 @@
}); });
$('#uploadModal').on('hidden.bs.modal', function () { $('#uploadModal').on('hidden.bs.modal', function () {
$(this).find('form')[0].reset(); $(this).find('form').trigger('reset');
$('.custom-file-label').text('Choose file')
$('#upload_save_button_span').html('<button type="submit" id="upload_save_button" class="btn btn-info">Save</button>');
}); });
events.on('event', function(event) { events.on('event', function(event) {

Loading…
Cancel
Save