mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
add select all/none functionality to several edit dialogs
This commit is contained in:
@@ -1171,11 +1171,25 @@ class Pref_Feeds extends Protected_Handler {
|
||||
}
|
||||
}
|
||||
|
||||
print "<div dojoType=\"dijit.Toolbar\">
|
||||
<input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\" name=\"newcat\">
|
||||
print "<div dojoType=\"dijit.Toolbar\">";
|
||||
|
||||
print "<div dojoType=\"dijit.form.DropDownButton\">".
|
||||
"<span>" . __('Select')."</span>";
|
||||
print "<div dojoType=\"dijit.Menu\" style=\"display: none;\">";
|
||||
print "<div onclick=\"selectTableRows('prefFeedCatList', 'all')\"
|
||||
dojoType=\"dijit.MenuItem\">".__('All')."</div>";
|
||||
print "<div onclick=\"selectTableRows('prefFeedCatList', 'none')\"
|
||||
dojoType=\"dijit.MenuItem\">".__('None')."</div>";
|
||||
print "</div></div>";
|
||||
|
||||
print "<div style='float : right'>";
|
||||
|
||||
print "<input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\" name=\"newcat\">
|
||||
<button dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('feedCatEditDlg').addCategory()\">".
|
||||
__('Create category')."</button></div>";
|
||||
|
||||
print "</div>";
|
||||
|
||||
$result = db_query($this->link, "SELECT title,id FROM ttrss_feed_categories
|
||||
WHERE owner_uid = ".$_SESSION["uid"]."
|
||||
ORDER BY title");
|
||||
@@ -1196,11 +1210,11 @@ class Pref_Feeds extends Protected_Handler {
|
||||
$cat_id = $line["id"];
|
||||
$this_row_id = "id=\"FCATR-$cat_id\"";
|
||||
|
||||
print "<tr class=\"\" $this_row_id>";
|
||||
print "<tr class=\"placeholder\" $this_row_id>";
|
||||
|
||||
$edit_title = htmlspecialchars($line["title"]);
|
||||
|
||||
print "<td width='5%' align='center'><input
|
||||
print "<td width='5%' align='center'><input id=\"FCATC-$cat_id\"
|
||||
onclick='toggleSelectRow2(this);' dojoType=\"dijit.form.CheckBox\"
|
||||
type=\"checkbox\"></td>";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user