Skip to content
Snippets Groups Projects
Commit 3e895824 authored by Peter Rotich's avatar Peter Rotich
Browse files

Add expres actions support

parent a4269735
No related branches found
No related tags found
No related merge requests found
......@@ -329,4 +329,31 @@ jQuery(function($) {
return false;
});
//ticket status (close & reopen)
$('a#ticket-close, a#ticket-reopen').click(function(e) {
e.preventDefault();
$('#overlay').show();
$('.dialog#ticket-status').show();
return false;
});
//ticket actions confirmation - Delete + more
$('a#ticket-delete, a#ticket-claim, #action-dropdown-more li a').click(function(e) {
e.preventDefault();
if($('.dialog#confirm-action '+$(this).attr('href')+'-confirm').length) {
var action = $(this).attr('href').substr(1, $(this).attr('href').length);
$('.dialog#confirm-action #action').val(action);
$('#overlay').show();
$('.dialog#confirm-action .confirm-action').hide();
$('.dialog#confirm-action p'+$(this).attr('href')+'-confirm')
.show()
.parent('div').show().trigger('click');
} else {
alert('Unknown action '+$(this).attr('href')+'- get technical help.');
}
return false;
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment