added delete timesheet records action for users #67 (#72)

This commit is contained in:
Kevin Papst
2018-01-09 21:47:32 +01:00
committed by GitHub
parent 03896e3a1a
commit 42bf4f41f7
6 changed files with 39 additions and 6 deletions

View File

@@ -7,6 +7,11 @@ $(document).ready(function() {
var methods = {
init : function(options) {
$.fn.kimai.settings = $.extend( {}, $.fn.kimai.defaults, options );
// ask before a delete call is executed
$('a.btn-trash').click(function (event) {
return confirm($.fn.kimai.settings['confirmDelete']);
});
},
hook: function(name) {
alert('Hook: ' + name);
@@ -45,7 +50,8 @@ $(document).ready(function() {
// default values
$.fn.kimai.defaults = {
baseUrl: '/',
imagePath: '/images'
imagePath: '/images',
confirmDelete: 'Really delete?'
};
// once initialized, here are all values