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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user