upgraded to symfony 4 #74 (#81)

This commit is contained in:
Kevin Papst
2018-01-12 20:39:07 +01:00
committed by GitHub
parent c011b83b73
commit a87355695e
232 changed files with 5260 additions and 4231 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,62 +0,0 @@
$(document).ready(function() {
(function( $ ) {
var pubSub = $({});
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);
},
subscribe: function() {
pubSub.on.apply(pubSub, arguments);
},
unsubscribe: function() {
pubSub.off.apply(pubSub, arguments);
},
publish: function() {
pubSub.trigger.apply(pubSub, arguments);
},
pauseRecord: function(selector) {
$(selector + ' .pull-left i').hover(function () {
var link = $(this).parents('a');
link.attr('href', link.attr('href').replace('/stop', '/pause'));
$(this).removeClass('fa-stop-circle').addClass('fa-pause-circle').addClass('text-orange');
},function () {
var link = $(this).parents('a');
link.attr('href', link.attr('href').replace('/pause', '/stop'));
$(this).removeClass('fa-pause-circle').removeClass('text-orange').addClass('fa-stop-circle');
});
}
};
$.fn.kimai = function(options) {
if (methods[options]) {
return methods[options].apply( this, Array.prototype.slice.call(arguments, 1));
} else if (typeof options === 'object') {
return methods.init.apply( this, arguments );
}
return this;
};
// default values
$.fn.kimai.defaults = {
baseUrl: '/',
imagePath: '/images',
confirmDelete: 'Really delete?'
};
// once initialized, here are all values
$.fn.kimai.settings = {};
}( jQuery ));
});

View File

@@ -1,24 +0,0 @@
$(document).ready(function () {
$('.toolbar form select').change(function (event) {
switch (event.target.id) {
case 'customer':
if ($(this).val() === '') {
$('.toolbar form select#project').parent().remove();
} else {
$('.toolbar form select#project').val('');
}
$('.toolbar form select#activity').parent().remove();
break;
case 'project':
if ($(this).val() === '') {
$('.toolbar form select#activity').parent().remove();
} else {
$('.toolbar form select#activity').val('');
}
break;
}
$('.toolbar form').submit();
});
});