From 017f81221328d1276d2750f0ae2ada8c7ac4f219 Mon Sep 17 00:00:00 2001 From: stingl Date: Mon, 29 Nov 2021 13:46:11 +0100 Subject: [PATCH] test; --- css/app.css | 4 ++++ js/app.js | 13 ++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/css/app.css b/css/app.css index abd2d79..1e674fa 100644 --- a/css/app.css +++ b/css/app.css @@ -234,3 +234,7 @@ nav, .card { #trackerTasksModal input[type=range] { width: 100%; } + +.ticket-icon { + max-width: 24px; +} \ No newline at end of file diff --git a/js/app.js b/js/app.js index bedd93d..cc91c2b 100644 --- a/js/app.js +++ b/js/app.js @@ -239,15 +239,14 @@ const TimeTrack = { message: 'Buchung gespeichert', color: 'blue', buttons: [ - ['', function (instance, toast) { + ['', 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]