Files
DefinitelyTyped/jquery.are-you-sure/jquery.are-you-sure.d.ts
T
Jon Egerton a0db190fa3 Make silent option on AreYouSureOptions optional
Make silent option on AreYouSureOptions optional
2014-01-21 15:24:01 +00:00

34 lines
975 B
TypeScript

// Type definitions for jquery.are-you-sure.js
// Project: https://github.com/codedance/jquery.AreYouSure
// Definitions by: Jon Egerton <https://github.com/jonegerton>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
/**Options available to control dirty form checking*/
interface AreYouSureOptions {
/**Message to show when attempting to quit a dirty form without saving*/
message?: string;
/**Class to assign to the form when dirty*/
dirtyClass?: string;
/**Callback when form is found to be dirty - allows control of submit/reset buttons etc*/
change?: Function;
/**Jquery selector to use to find input elements*/
fieldSelector?: string;
/**Make Are-You-Sure "silent" by disabling the warning message*/
silent?: boolean;
}
interface AreYouSure {
(): JQuery;
(options: AreYouSureOptions): JQuery;
}
interface JQuery {
areYouSure: AreYouSure;
}