Skip to content

Commit 83ad41c

Browse files
committed
renaming button name in confirm modal
1 parent 03f5908 commit 83ad41c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/js/api.library.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ api.modal.confirm = function (pMessage, pCallbackMethod, pCallbackParams) {
510510
// Set the body of the Modal - Empty the container first
511511
$("#modal-confirm").find(".modal-body > p").empty().html(pMessage);
512512

513-
$("#modal-confirm").find("[name=submit]").once("click", function () {
513+
$("#modal-confirm").find("[name=confirm]").once("click", function () {
514514
// Close the Modal
515515
$("#modal-confirm").modal('hide');
516516
// Must wait for the async transition to finsh before invoking the callback function that may be a cascade confirm

test/template/modal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h5 class="modal-title text-light">Confirm</h5>
1111
</div>
1212
<div class="modal-footer">
1313
<button type="button" class="btn btn-neutral" data-dismiss="modal"><i class="far fa-times-circle"></i> Cancel</button>
14-
<button type="button" name="submit" class="btn btn-warning text-light"><i class="far fa-check-circle"></i> Confirm</button>
14+
<button type="button" name="confirm" class="btn btn-warning text-light"><i class="far fa-check-circle"></i> Confirm</button>
1515
</div>
1616
</div>
1717
</div>

0 commit comments

Comments
 (0)