Skip to content

Commit

Permalink
Fix JS (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
Memurame authored Aug 20, 2024
1 parent f2d7a52 commit 33c7f10
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions public/assets/js/ecm.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ $(document).on('click', '.action-invoicemovedown', function() {
})
});
});
$(document).on('click', '.action-addinvoicetitle', function() {
$(document).on('click', '.action-addinvoicetitle', function(e) {
e.preventDefault()
const {value: text} = Swal.fire({
title: 'Position Titel',
Expand All @@ -253,8 +253,9 @@ $(document).on('click', '.action-addinvoicetitle', function() {
}),
cache: false,
statusCode: {
200: function (respond) {
window.location.href = rootUrl + '/message?chat=' + respond.chat_id
204: function (respond) {
location.reload(true);

},
400: function (error) {
Swal.fire({
Expand Down

0 comments on commit 33c7f10

Please sign in to comment.