-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:anavel/crud
- Loading branch information
Showing
29 changed files
with
9,639 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
$(function () { | ||
// Varying modal based on modal id show event | ||
$('#delete-modal').on('show.bs.modal', function (event) { | ||
var button = $(event.relatedTarget) // Button that triggered the modal | ||
var action = button.data('action') // Extract info from data-* attributes | ||
// If necessary, you could initiate an AJAX request here (and then do the updating in a callback). | ||
// Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead. | ||
var modal = $(this); | ||
if(action !=undefined) | ||
{ | ||
modal.find('form').attr('action',action); | ||
} | ||
|
||
}) | ||
}); |
Oops, something went wrong.