diff options
author | Andrew Dolgov <[email protected]> | 2012-06-14 21:04:14 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-06-14 21:04:14 +0400 |
commit | ddb575c744e2740611fd51d11492a5bdc6265caf (patch) | |
tree | 6a8e584231789186347aa8af5b98d43f7f3a8b14 /classes/pref_feeds.php | |
parent | f0755b7c7e5268edcb5924ed12589a4c52c0673b (diff) |
add select all/none functionality to several edit dialogs
Diffstat (limited to 'classes/pref_feeds.php')
-rw-r--r-- | classes/pref_feeds.php | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/classes/pref_feeds.php b/classes/pref_feeds.php index 61eeb598b..257c1f9c3 100644 --- a/classes/pref_feeds.php +++ b/classes/pref_feeds.php @@ -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>"; |