mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-26 12:10:44 +08:00
Add new "silent" setting to AreYouSureOptions
Add new "silent" setting to AreYouSureOptions
This commit is contained in:
1 parent
44870d3f9c
commit
1858606027
2 files changed
+5
-1
No files matched your search
@@ -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