restore confirmation dialog on delete button

- as it was in rev. e7cafadcc3 (for example)
agranig/1_0_subfix
Gerhard Jungwirth 13 years ago
parent 764865cdcf
commit 7b9c7b1a3b

@ -115,7 +115,7 @@ $(function () {
function() { $(this).find('.sw_actions').hide(); }
);
$('a[data-confirm]').click(function(ev) {
$('a[data-confirm]').live("click", function(ev) {
var href = $(this).attr('href');
if (!$('#dataConfirmModal').length) {
$('body').append(

@ -146,7 +146,7 @@ $(document).ready(function() {
'<a style="display:inline;line-height:16px;" class="btn btn-small btn-primary" href="[% c.uri_for( c.controller.action_for("") ) %]/' + full[0] + '/edit">' +
'<i class="icon-edit" style="line-height:1em;margin-top:2px"></i> Edit' +
'</a>' +
'<a style="display:inline;line-height:16px;margin-left:5px;" class="btn btn-small btn-secondary" href="[% c.uri_for( c.controller.action_for("") ) %]/' + full[0] + '/delete">' +
'<a style="display:inline;line-height:16px;margin-left:5px;" class="btn btn-small btn-secondary" href="[% c.uri_for( c.controller.action_for("") ) %]/' + full[0] + '/delete" data-confirm="Delete">' +
'<i class="icon-trash" style="line-height:1em;margin-top:2px"></i> Delete' +
'</a>' +
'</div>';

Loading…
Cancel
Save