mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +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
|
||||
})
|
||||
@@ -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