Go to English page

Neuigkeiten

Im Kalender-Modul "jsDatePick" v1.3 von http://javascriptcalendar.org/ gibt es einen Bug, der bei gesetztem "selectedDate" (vorausgewähltes Datum bei Scriptaufruf) den Kalender zerstört.
Als Quickfix biete ich folgende Lösung dieses Problems an:
1. Öffnen Sie die Datei jsDatePick.full.1.3.js (diese muss danach auch in die HTML-Seite eingebunden sein, nicht mehr die Minimalversion!)
2. Ersetzen sie den entsprechenden Codeteil in der Funktion "setConfiguration" mit dem folgenden Code:
        this.selectedDayObject = {};
        this.flag_DayMarkedBeforeRepopulation = false;
        this.flag_aDayWasSelected = false;
        this.lastMarkedDayObject = null;
        
        if (!this.oConfiguration.selectedDate){
                this.currentYear         = this.oCurrentDay.year;
                this.currentMonth        = this.oCurrentDay.month;
                this.currentDay                = this.oCurrentDay.day;
        } else {
                this.currentYear         = this.oConfiguration.selectedDate.year;
                this.currentMonth        = this.oConfiguration.selectedDate.month;
                this.currentDay                = this.oConfiguration.selectedDate.day;
                this.selectedDayObject = this.oConfiguration.selectedDate;
                this.flag_aDayWasSelected = true;                                         
        }
Victor-Phillip Negoescu
ViaThinkSoft Gründer

<< Weitere Neuigkeiten