mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:35:56 +00:00
use dojo stuff for user details
This commit is contained in:
25
js/prefs.js
25
js/prefs.js
@@ -83,8 +83,6 @@ function addUser() {
|
||||
function editUser(id, event) {
|
||||
|
||||
try {
|
||||
notify_progress("Loading, please wait...");
|
||||
|
||||
var query = "backend.php?op=pref-users&method=edit&id=" +
|
||||
param_escape(id);
|
||||
|
||||
@@ -555,17 +553,24 @@ function selectedUserDetails() {
|
||||
return;
|
||||
}
|
||||
|
||||
notify_progress("Loading, please wait...");
|
||||
|
||||
var id = rows[0];
|
||||
|
||||
var query = "?op=pref-users&method=userdetails&id=" + id;
|
||||
var query = "backend.php?op=pref-users&method=userdetails&id=" + id;
|
||||
|
||||
if (dijit.byId("userDetailsDlg"))
|
||||
dijit.byId("userDetailsDlg").destroyRecursive();
|
||||
|
||||
dialog = new dijit.Dialog({
|
||||
id: "userDetailsDlg",
|
||||
title: __("User details"),
|
||||
style: "width: 600px",
|
||||
execute: function() {
|
||||
dialog.hide();
|
||||
},
|
||||
href: query});
|
||||
|
||||
dialog.show();
|
||||
|
||||
new Ajax.Request("backend.php", {
|
||||
parameters: query,
|
||||
onComplete: function(transport) {
|
||||
infobox_callback2(transport, __("User details"));
|
||||
} });
|
||||
} catch (e) {
|
||||
exception_error("selectedUserDetails", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user