Skip to content

Commit

Permalink
fixed removing text with datetimeshortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
sehmaschine committed Sep 11, 2023
1 parent b2bb2a2 commit 9855acd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions grappelli/static/grappelli/js/grappelli.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ var inputTypes = [
$(this).html(text);
});

$('span.datetimeshortcuts').each(function() {
var text = $(this).html();
text = text.replace(/\w*: /, "");
text = text.replace(/<br>[^<]*: /g, "<br>");
$(this).html(text);
});

var options = {
//appendText: '(mm/dd/yyyy)',
constrainInput: false,
Expand Down

0 comments on commit 9855acd

Please sign in to comment.