first commit for v0.2

This commit is contained in:
Élie Bouttier 2014-08-30 15:38:06 -07:00
parent 6ba03afc73
commit 1463854a45
143 changed files with 20775 additions and 2764 deletions

View file

@ -0,0 +1,11 @@
/* This script set the action url of the deletion form
* and update messages. */
$('#confirm-delete').on('show.bs.modal', function(e) {
var item = $(e.relatedTarget).data('item');
if (!item) {
item = 'item';
}
$('#confirm-delete-form').attr('action', $(e.relatedTarget).data('action'));
$('#confirm-delete-title').html('Delete ' + item);
$('#confirm-delete-message').html('Are you sure to delete this ' + item + '?');
});