]> git.wh0rd.org Git - tt-rss.git/commitdiff
update user editor a bit
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 25 Dec 2012 14:20:33 +0000 (18:20 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 25 Dec 2012 14:20:33 +0000 (18:20 +0400)
classes/pref/users.php
js/prefs.js
tt-rss.css

index 40264660d670166e78cd9426c7720a2c6c8099d7..49dd896e9f0a2036a7ce8fb3b96f346a51df2c16 100644 (file)
@@ -435,8 +435,8 @@ class Pref_Users extends Handler_Protected {
 
                        print "<tr class=\"title\">
                                                <td align='center' width=\"5%\">&nbsp;</td>
-                                               <td width=''><a href=\"#\" onclick=\"updateUsersList('login')\">".__('Login')."</a></td>
-                                               <td width='20%'><a href=\"#\" onclick=\"updateUsersList('access_level')\">".__('Access Level')."</a></td>
+                                               <td width='30%'><a href=\"#\" onclick=\"updateUsersList('login')\">".__('Login')."</a></td>
+                                               <td width='30%'><a href=\"#\" onclick=\"updateUsersList('access_level')\">".__('Access Level')."</a></td>
                                                <td width='20%'><a href=\"#\" onclick=\"updateUsersList('created')\">".__('Registered')."</a></td>
                                                <td width='20%'><a href=\"#\" onclick=\"updateUsersList('last_login')\">".__('Last login')."</a></td></tr>";
 
@@ -448,15 +448,16 @@ class Pref_Users extends Handler_Protected {
 
                                $uid = $line["id"];
 
-                               print "<tr class=\"$class\" id=\"UMRR-$uid\">";
+                               print "<tr id=\"UMRR-$uid\">";
 
                                $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 "<td align='center'><input onclick='toggleSelectRow(this);'
-                                       type=\"checkbox\" id=\"UMCHK-$uid\"></td>";
+                               print "<td align='center'><input onclick='toggleSelectRow2(this);'
+                                       dojoType=\"dijit.form.CheckBox\" type=\"checkbox\"
+                                       id=\"UMCHK-$uid\"></td>";
 
                                $onclick = "onclick='editUser($uid, event)' title='".__('Click to edit')."'";
 
index 1154b9f18ecec4bf041a6d17c25a39a5f5ce4e5c..0b3f47c0aacfde212fbd7afbcff67bd897c5b955 100644 (file)
@@ -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);
        }
index c1200bd41a83e066ba613be005285d69b005d481..720365f91a5c125c5aa872ee3e6dea9d0e46e58b 100644 (file)
@@ -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;
 }