mirror of
https://gh.wpcy.net/https://github.com/FreeScout-shop/delete-notes.git
synced 2026-04-17 05:23:02 +08:00
21 lines
No EOL
553 B
JavaScript
21 lines
No EOL
553 B
JavaScript
/**
|
|
* Module's JavaScript.
|
|
*/
|
|
|
|
function clickDeleteNote(thread_id){
|
|
showModalConfirm(Lang.get('messages.confirm_delete_note'), 'dn-delete-note', {
|
|
on_show: function(modal) {
|
|
modal.children().find('.dn-delete-note:first').click(function() {
|
|
modal.modal('hide')
|
|
fsAjax(
|
|
{thread_id},
|
|
laroute.route('deletenotes.delete'),
|
|
function(response) {
|
|
showAjaxResult(response)
|
|
$('#thread-'+thread_id).remove()
|
|
}
|
|
)
|
|
})
|
|
}
|
|
}, Lang.get("messages.delete"))
|
|
} |