1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 09:39:55 +02:00

New Feature: Adding data-modal-submit='true' to a link (with class='e-modal') that points to an admin-ui create/edit form will now cause the iframe's form buttons to be hidden, and the "Create" or "Update" button placed in the footer of the modal window. Basically, this avoids the need to scroll the iframe in order to submit the form. The iframe's form is submitted from the modal window's button.

The same can be achieved with $readParms = array('target'=>'modal', 'modalSubmit'=>true); on an 'options' field in admin-ui $fields.
This commit is contained in:
Cameron
2018-07-14 16:07:49 -07:00
parent 7933ec651e
commit 7d40402760
3 changed files with 57 additions and 1 deletions

View File

@@ -174,6 +174,7 @@ $ADMIN_MODAL = '
<p>'.LAN_LOADING.'</p>
</div>
<div class="modal-footer">
<button type="button" id="e-modal-submit" class="btn btn-success" style="display:none" data-loading-icon="fa-spinner"><!-- placeholder --></button>
<button type="button" class="btn btn-primary" data-dismiss="modal">'.LAN_CLOSE.'</button>
</div>
</div>