From 98d3edcff772ef546854a825e535dea29c1d642a Mon Sep 17 00:00:00 2001 From: Anwar Javed Date: Wed, 9 Jan 2013 21:07:01 +0530 Subject: [PATCH 1/2] Optional Field issue in TimePicker Plugin. --- jquery.timepicker/jquery.timepicker.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/jquery.timepicker/jquery.timepicker.d.ts b/jquery.timepicker/jquery.timepicker.d.ts index 2c8e0bcde..5025290ef 100644 --- a/jquery.timepicker/jquery.timepicker.d.ts +++ b/jquery.timepicker/jquery.timepicker.d.ts @@ -22,12 +22,12 @@ interface TimePickerOptions { // 'button' for trigger button, or 'both' for either (not yet implemented) button?: string; // 'button' element that will trigger the timepicker showAnim?: string; // Name of jQuery animation for popup - showOptions: any; // Options for enhanced animations + showOptions?: any; // Options for enhanced animations appendText?: string; // Display text following the input box, e.g. showing the format - beforeShow: () => any; // Define a callback function executed before the timepicker is shown - onSelect: () => any; // Define a callback function when a hour / minutes is selected - onClose: () => any; // Define a callback function when the timepicker is closed + beforeShow?: () => any; // Define a callback function executed before the timepicker is shown + onSelect?: () => any; // Define a callback function when a hour / minutes is selected + onClose?: () => any; // Define a callback function when the timepicker is closed timeSeparator?: string; // The character to use to separate hours and minutes. periodSeparator?: string; // The character to use to separate the time from the time period. @@ -43,8 +43,8 @@ interface TimePickerOptions { atPosition?: string; // Position of the input element to match // Note : if the position utility is not loaded, the timepicker will attach left top to left bottom //NEW: 2011-02-03 - onHourShow: () => any; // callback for enabling / disabling on selectable hours ex : function(hour) { return true; } - onMinuteShow: () => any; // callback for enabling / disabling on time selection ex : function(hour,minute) { return true; } + onHourShow?: () => any; // callback for enabling / disabling on selectable hours ex : function(hour) { return true; } + onMinuteShow?: () => any; // callback for enabling / disabling on time selection ex : function(hour,minute) { return true; } hours?: TimePickerHour; minutes?: TimePickerMinutes; From deb5fa9ecf26e32a16644794d55cadb162260a4c Mon Sep 17 00:00:00 2001 From: Anwar Javed Date: Wed, 16 Jan 2013 08:54:44 +0530 Subject: [PATCH 2/2] jQuery Ajax abort --- jquery/jquery-1.8.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/jquery/jquery-1.8.d.ts b/jquery/jquery-1.8.d.ts index 3328c2082..4e617c961 100644 --- a/jquery/jquery-1.8.d.ts +++ b/jquery/jquery-1.8.d.ts @@ -59,6 +59,7 @@ interface JQueryAjaxSettings { */ interface JQueryXHR extends XMLHttpRequest, JQueryPromise { overrideMimeType(mimeType: string); + abort(statusText: string): void; } /*