diff --git a/jquery.are-you-sure/jquery.are-you-sure-tests.ts b/jquery.are-you-sure/jquery.are-you-sure-tests.ts index 6f8691e05..89ac4e87a 100644 --- a/jquery.are-you-sure/jquery.are-you-sure-tests.ts +++ b/jquery.are-you-sure/jquery.are-you-sure-tests.ts @@ -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 }) \ No newline at end of file diff --git a/jquery.are-you-sure/jquery.are-you-sure.d.ts b/jquery.are-you-sure/jquery.are-you-sure.d.ts index 62cc39c2c..81392361a 100644 --- a/jquery.are-you-sure/jquery.are-you-sure.d.ts +++ b/jquery.are-you-sure/jquery.are-you-sure.d.ts @@ -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 {