Skip to content

Commit

Permalink
Merge branch 'master' of github.com:anavel/crud
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrián Pardellas Blunier committed Jun 3, 2016
2 parents 8648757 + 6b3a6af commit 00159b9
Show file tree
Hide file tree
Showing 29 changed files with 9,639 additions and 19 deletions.
1 change: 1 addition & 0 deletions public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ $(function () {

//bootstrap WYSIHTML5 - text editor
$(".bootstrap-wysihtml5").wysihtml5();
$('select').selectize();
});
15 changes: 15 additions & 0 deletions public/js/modals.js
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);
}

})
});
Loading

0 comments on commit 00159b9

Please sign in to comment.