Browse Source

test;

master
stingl 4 years ago
parent
commit
017f812213
  1. 4
      css/app.css
  2. 13
      js/app.js

4
css/app.css

@ -234,3 +234,7 @@ nav, .card {
#trackerTasksModal input[type=range] { #trackerTasksModal input[type=range] {
width: 100%; width: 100%;
} }
.ticket-icon {
max-width: 24px;
}

13
js/app.js

@ -239,15 +239,14 @@ const TimeTrack = {
message: 'Buchung gespeichert', message: 'Buchung gespeichert',
color: 'blue', color: 'blue',
buttons: [ buttons: [
['<button>' + ['<button><img src="'+component.ticketSystemIcon+'" class="ticket-icon"/></button>', function (instance, toast) {
'<a href="' + component.ticketSystemUrl + ticket.number.replace('#', '').trim()+'/time_entries/new?time_entry[hours]='+Math.round(minutesSpent)/60+'">' +
'<img src="'+component.ticketSystemIcon+'" class="ticket-icon"/>' +
'</a>' +
'</button>', function (instance, toast) {
instance.hide({ instance.hide({
transitionOut: 'fadeOutUp', transitionOut: 'fadeOutUp',
onClosing: function(instance, toast, closedBy){ onClosing: function () {
component.restoreTrashed(); window.open(
component.ticketSystemUrl + ticket.number.replace('#', '').trim()+'/time_entries/new?time_entry[hours]='+(Math.round(minutesSpent)/60),
'_blank'
);
} }
}, toast, 'buttonName'); }, toast, 'buttonName');
}, true] }, true]