hotfix format saving

master
Benjamin Schieder 2017-04-23 21:02:58 +01:00
parent 0ccef4136d
commit c0286d45e9
2 changed files with 6 additions and 1 deletions

View File

@ -30,6 +30,11 @@ sub fill_content {
return 1;
}
if ($main::FORM{action} and "x".$main::FORM{action} eq "xsaveformat"){
$feed->{data}->{format} = $main::FORM{format};
$feed->save();
}
if ($main::FORM{action} and "x".$main::FORM{action} eq "xsave"){
my @filters = $feed->filters();
FILTER: foreach my $filter (@filters){

View File

@ -44,7 +44,7 @@
<h3>Format</h3>
<div id="format">
Enter the format for the toot. You can use the placeholders <code>{ID}</code>, <code>{Title}</code>, <code>{Link}</code>, <code>{Content}</code>, <code>{Author}</code>, <code>{Issued}</code>, <code>{Modified}</code> and <code>{Tags}</code> to substitute the respective values. <br />
<input type="text" placeholder="{Title} - {Link} by {Author} -- posted at {Issued} with #RSSTootalizer" maxlength=500 value="<TMPL_VAR NAME="format">" class="btn-block"><br />
<input type="text" placeholder="{Title} - {Link} by {Author} -- posted at {Issued} with #RSSTootalizer" maxlength=500 value="<TMPL_VAR NAME="format">" name="format" class="btn-block"><br />
<input type="Submit" value="Save format" class="btn btn-primary btn-block">
</div>
</form>