X-Git-Url: http://git.home-dn.net/?p=manu%2FRT-Extension-Drafts.git;a=blobdiff_plain;f=lib%2FRT%2FExtension%2FDrafts.pm;h=40f789eaedf8783b32d3aee1e1c8338a1a1f90ea;hp=90f05817a4e4f472d96b93a85dd77ff0c5db1f1c;hb=refs%2Fheads%2Fmaster;hpb=d4b8ed547346eb5b927662d8556d468acb9fccee diff --git a/lib/RT/Extension/Drafts.pm b/lib/RT/Extension/Drafts.pm index 90f0581..40f789e 100644 --- a/lib/RT/Extension/Drafts.pm +++ b/lib/RT/Extension/Drafts.pm @@ -9,11 +9,11 @@ RT::Extension::Drafts - Allow to save/load drafts in ticket replies/comments =head1 VERSION -Version 0.02 +Version 0.04 =cut -our $VERSION = '0.02'; +our $VERSION = '0.04'; =head1 SYNOPSIS @@ -69,7 +69,7 @@ L =head1 COPYRIGHT & LICENSE -Copyright 2011-2016 Emmanuel Lacour, all rights reserved. +Copyright 2011-2018 Emmanuel Lacour, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. @@ -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