#57165 add periodic autosave feature to RT-Extension-Drafts
[manu/RT-Extension-Drafts.git] / lib / RT / Extension / Drafts.pm
index 90f0581..818a3ca 100644 (file)
@@ -78,4 +78,15 @@ Request Tracker (RT) is Copyright Best Practical Solutions, LLC.
 
 =cut
 
+# User overridable options
+$RT::Config::META{AutoSaveDraftPeriod} = {
+    Section         => 'Ticket composition',
+    Overridable     => 1,
+    SortOrder       => 20,
+    Widget          => '/Widgets/Form/Integer',
+    WidgetArguments => {
+        Description => 'Period (in seconds) to automatically save a response/comment draft'
+    },
+};
+
 1; # End of RT::Extension::Drafts