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