mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
Add new "silent" setting to AreYouSureOptions
Add new "silent" setting to AreYouSureOptions
This commit is contained in:
@@ -14,5 +14,6 @@ $("test").areYouSure({
|
||||
message: "Oops - sure you wanna leave?",
|
||||
dirtyClass: "soiled",
|
||||
fieldSelector: "input[type='text']",
|
||||
change: function () { alert("changed");}
|
||||
change: function () { alert("changed");},
|
||||
silent: true
|
||||
})
|
||||
3
jquery.are-you-sure/jquery.are-you-sure.d.ts
vendored
3
jquery.are-you-sure/jquery.are-you-sure.d.ts
vendored
@@ -19,6 +19,9 @@ interface AreYouSureOptions {
|
||||
|
||||
/**Jquery selector to use to find input elements*/
|
||||
fieldSelector?: string;
|
||||
|
||||
/**Make Are-You-Sure "silent" by disabling the warning message*/
|
||||
silent: boolean;
|
||||
}
|
||||
|
||||
interface AreYouSure {
|
||||
|
||||
Reference in New Issue
Block a user