From 84391d694844d716cb5be257da7f4c9ca39c6718 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 25 Dec 2012 18:20:33 +0400 Subject: [PATCH] update user editor a bit --- classes/pref/users.php | 11 ++++++----- js/prefs.js | 11 ----------- tt-rss.css | 2 +- 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/classes/pref/users.php b/classes/pref/users.php index 40264660d..49dd896e9 100644 --- a/classes/pref/users.php +++ b/classes/pref/users.php @@ -435,8 +435,8 @@ class Pref_Users extends Handler_Protected { print "   - ".__('Login')." - ".__('Access Level')." + ".__('Login')." + ".__('Access Level')." ".__('Registered')." ".__('Last login').""; @@ -448,15 +448,16 @@ class Pref_Users extends Handler_Protected { $uid = $line["id"]; - print ""; + print ""; $line["login"] = htmlspecialchars($line["login"]); $line["created"] = make_local_datetime($this->link, $line["created"], false); $line["last_login"] = make_local_datetime($this->link, $line["last_login"], false); - print ""; + print ""; $onclick = "onclick='editUser($uid, event)' title='".__('Click to edit')."'"; diff --git a/js/prefs.js b/js/prefs.js index 1154b9f18..0b3f47c0a 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -83,13 +83,8 @@ function addUser() { function editUser(id, event) { try { - if (!event || !event.ctrlKey) { - notify_progress("Loading, please wait..."); - selectTableRows('prefUserList', 'none'); - selectTableRowById('UMRR-'+id, 'UMCHK-'+id, true); - var query = "?op=pref-users&method=edit&id=" + param_escape(id); @@ -100,12 +95,6 @@ function editUser(id, event) { document.forms['user_edit_form'].login.focus(); } }); - } else if (event.ctrlKey) { - var cb = $('UMCHK-' + id); - cb.checked = !cb.checked; - toggleSelectRow(cb); - } - } catch (e) { exception_error("editUser", e); } diff --git a/tt-rss.css b/tt-rss.css index c1200bd41..720365f91 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -1408,6 +1408,6 @@ ul#filterDlg_Matches li div.dijitCheckBox, ul#filterDlg_Actions li div.dijitChec margin-right : 5px; } -table.prefPrefsList td labe/ { +table.prefPrefsList td label, table.prefUserList td { cursor : pointer; }