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

13
js/app.js

@ -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]