Use attribute data-confirm

This commit is contained in:
touffies
2013-11-05 16:39:52 +01:00
parent e13c5dc3d5
commit 1426984f55
3 changed files with 13 additions and 47 deletions

View File

@@ -48,10 +48,10 @@
});
// Confirm Dialog
$(document).on('click.confirm', '[data-toggle="confirm"]', function (e) {
$(document).on('click.confirm', '[data-confirm]', function (e) {
var $this = $(this),
href = $this.attr('href'),
title = $this.attr('data-confirm-title') ? $this.attr('data-confirm-title') : 'Are you sure?';
title = $this.attr('data-confirm') != '' ? $this.attr('data-confirm') : 'Are you sure?';
bootbox.confirm(title, function(confirm) {
if(confirm){