Skip to content
This repository has been archived by the owner on Aug 5, 2019. It is now read-only.

DatePicker adds unlimited tags to HEAD #539

Open
christIT opened this issue Apr 20, 2016 · 1 comment
Open

DatePicker adds unlimited tags to HEAD #539

christIT opened this issue Apr 20, 2016 · 1 comment

Comments

@christIT
Copy link

Similar to #500 but in the HEAD of the HTML Page.
When I navigate around in my project the script entries in the HEAD part of the HTML Page get more and more.

They all look the same:

<script type="text/javascript" charset="UTF-8">
/**
 * German translation for bootstrap-datetimepicker
 * Sam Zurcher <[email protected]>
 */
;(function($){
    $.fn.datetimepicker.dates['de'] = {
        days: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"],
        daysShort: ["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam", "Son"],
        daysMin: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"],
        months: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
        monthsShort: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
        today: "Heute",
        suffix: [],
        meridiem: [],
        weekStart: 1,
        format: "dd.mm.yyyy"
    };
}(jQuery));
</script>
@christIT
Copy link
Author

For my own project I made a change. Now it is checked if the script is already injected. @0bc436330dd0fa8e38a5b5fa869dc56c23b1ed1b
My solution doesn't look good but works for me, maybe you can do better.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant