]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove obsolete xml stuff in pref-users infoboxes
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 1 Apr 2013 14:28:47 +0000 (18:28 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 1 Apr 2013 14:28:47 +0000 (18:28 +0400)
classes/pref/users.php
js/prefs.js

index 5b5120e1b834387549fc97035ede79ef1e74b35f..891a69a52b68b11759733d0e6de1a5e69ad05c6c 100644 (file)
@@ -19,15 +19,8 @@ class Pref_Users extends Handler_Protected {
 
                function userdetails() {
 
-                       header("Content-Type: text/xml");
-                       print "<dlg>";
-
                        $uid = sprintf("%d", $_REQUEST["id"]);
 
-                       print "<title>".__('User details')."</title>";
-
-                       print "<content><![CDATA[";
-
                        $result = db_query($this->link, "SELECT login,
                                ".SUBSTRING_FOR_DATE."(last_login,1,16) AS last_login,
                                access_level,
@@ -106,22 +99,13 @@ class Pref_Users extends Handler_Protected {
                                <button onclick=\"closeInfoBox()\">".__("Close this window").
                                "</button></div>";
 
-                       print "]]></content></dlg>";
-
                        return;
                }
 
                function edit() {
                        global $access_level_names;
 
-                       header("Content-Type: text/xml");
-
                        $id = db_escape_string($this->link, $_REQUEST["id"]);
-
-                       print "<dlg id=\"$method\">";
-                       print "<title>".__('User Editor')."</title>";
-                       print "<content><![CDATA[";
-
                        print "<form id=\"user_edit_form\" onsubmit='return false'>";
 
                        print "<input type=\"hidden\" name=\"id\" value=\"$id\">";
@@ -193,8 +177,6 @@ class Pref_Users extends Handler_Protected {
                                <button onclick=\"return userEditCancel()\">".
                                        __('Cancel')."</button></div>";
 
-                       print "]]></content></dlg>";
-
                        return;
                }
 
index 5ba1e5d3d81368d63920e424e5ba232d72a04c0e..358625e933d86b8deddd18efcbbdb063dfc05548 100644 (file)
@@ -91,7 +91,7 @@ function editUser(id, event) {
                new Ajax.Request("backend.php", {
                        parameters: query,
                        onComplete: function(transport) {
-                                       infobox_callback2(transport);
+                                       infobox_callback2(transport, __("User Editor"));
                                        document.forms['user_edit_form'].login.focus();
                                } });
 
@@ -582,7 +582,7 @@ function selectedUserDetails() {
                new Ajax.Request("backend.php", {
                        parameters: query,
                        onComplete: function(transport) {
-                                       infobox_callback2(transport);
+                                       infobox_callback2(transport, __("User details"));
                                } });
        } catch (e) {
                exception_error("selectedUserDetails", e);