Add new "silent" setting to AreYouSureOptions

Add new "silent" setting to AreYouSureOptions
This commit is contained in:
Jon Egerton
2014-01-20 16:36:40 +00:00
parent 44870d3f9c
commit 1858606027
2 changed files with 5 additions and 1 deletions

View File

@@ -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
})

View File

@@ -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 {