mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
tweak article notes
This commit is contained in:
@@ -802,10 +802,12 @@
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"subop\" value=\"setpref\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"key\" value=\"USER_STYLESHEET\">";
|
||||
|
||||
print "<p><textarea dojoType=\"dijit.form.SimpleTextarea\"
|
||||
print "<table width='100%'><tr><td>";
|
||||
print "<textarea dojoType=\"dijit.form.SimpleTextarea\"
|
||||
style='font-size : 12px; width : 100%; height: 200px;'
|
||||
placeHolder='body#ttrssMain { font-size : 14px; };'
|
||||
name='value'>$value</textarea>";
|
||||
print "</td></tr></table>";
|
||||
|
||||
print "<div class='dlgButtons'>";
|
||||
print "<button dojoType=\"dijit.form.Button\"
|
||||
@@ -816,6 +818,34 @@
|
||||
|
||||
}
|
||||
|
||||
if ($id == "editArticleNote") {
|
||||
|
||||
$result = db_query($link, "SELECT note FROM ttrss_user_entries WHERE
|
||||
ref_id = '$param' AND owner_uid = " . $_SESSION['uid']);
|
||||
|
||||
$note = db_fetch_result($result, 0, "note");
|
||||
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"id\" value=\"$param\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"rpc\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"subop\" value=\"setNote\">";
|
||||
|
||||
print "<table width='100%'><tr><td>";
|
||||
print "<textarea dojoType=\"dijit.form.SimpleTextarea\"
|
||||
style='font-size : 12px; width : 100%; height: 100px;'
|
||||
placeHolder='body#ttrssMain { font-size : 14px; };'
|
||||
name='note'>$note</textarea>";
|
||||
print "</td></tr></table>";
|
||||
|
||||
print "<div class='dlgButtons'>";
|
||||
print "<button dojoType=\"dijit.form.Button\"
|
||||
onclick=\"dijit.byId('editNoteDlg').execute()\">".__('Save')."</button> ";
|
||||
print "<button dojoType=\"dijit.form.Button\"
|
||||
onclick=\"dijit.byId('editNoteDlg').hide()\">".__('Cancel')."</button>";
|
||||
print "</div>";
|
||||
|
||||
}
|
||||
|
||||
|
||||
print "</dlg>";
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user