remove obsolete xml stuff in pref-users infoboxes

This commit is contained in:
Andrew Dolgov 2013-04-01 18:28:47 +04:00
parent 837ec70e3e
commit 977580a41c
2 changed files with 2 additions and 20 deletions

View File

@ -19,15 +19,8 @@ class Pref_Users extends Handler_Protected {
function userdetails() { function userdetails() {
header("Content-Type: text/xml");
print "<dlg>";
$uid = sprintf("%d", $_REQUEST["id"]); $uid = sprintf("%d", $_REQUEST["id"]);
print "<title>".__('User details')."</title>";
print "<content><![CDATA[";
$result = db_query($this->link, "SELECT login, $result = db_query($this->link, "SELECT login,
".SUBSTRING_FOR_DATE."(last_login,1,16) AS last_login, ".SUBSTRING_FOR_DATE."(last_login,1,16) AS last_login,
access_level, access_level,
@ -106,22 +99,13 @@ class Pref_Users extends Handler_Protected {
<button onclick=\"closeInfoBox()\">".__("Close this window"). <button onclick=\"closeInfoBox()\">".__("Close this window").
"</button></div>"; "</button></div>";
print "]]></content></dlg>";
return; return;
} }
function edit() { function edit() {
global $access_level_names; global $access_level_names;
header("Content-Type: text/xml");
$id = db_escape_string($this->link, $_REQUEST["id"]); $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 "<form id=\"user_edit_form\" onsubmit='return false'>";
print "<input type=\"hidden\" name=\"id\" value=\"$id\">"; print "<input type=\"hidden\" name=\"id\" value=\"$id\">";
@ -193,8 +177,6 @@ class Pref_Users extends Handler_Protected {
<button onclick=\"return userEditCancel()\">". <button onclick=\"return userEditCancel()\">".
__('Cancel')."</button></div>"; __('Cancel')."</button></div>";
print "]]></content></dlg>";
return; return;
} }

View File

@ -91,7 +91,7 @@ function editUser(id, event) {
new Ajax.Request("backend.php", { new Ajax.Request("backend.php", {
parameters: query, parameters: query,
onComplete: function(transport) { onComplete: function(transport) {
infobox_callback2(transport); infobox_callback2(transport, __("User Editor"));
document.forms['user_edit_form'].login.focus(); document.forms['user_edit_form'].login.focus();
} }); } });
@ -582,7 +582,7 @@ function selectedUserDetails() {
new Ajax.Request("backend.php", { new Ajax.Request("backend.php", {
parameters: query, parameters: query,
onComplete: function(transport) { onComplete: function(transport) {
infobox_callback2(transport); infobox_callback2(transport, __("User details"));
} }); } });
} catch (e) { } catch (e) {
exception_error("selectedUserDetails", e); exception_error("selectedUserDetails", e);