mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-07 06:18:50 +00:00
Monotone-Parent: efb32ee0b07634ff28f86f07c618160d8d121225
Monotone-Revision: 9e683df87b2b67f61552768bc12e69f0d289640e Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-11-19T22:19:17 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
var contactSelectorAction = 'acls-contacts';
|
||||
var defaultUserID = '';
|
||||
var userRightsHeight;
|
||||
var userRightsWidth;
|
||||
|
||||
function addUser(userName, userID) {
|
||||
if (!$(userID)) {
|
||||
@@ -20,6 +22,7 @@ function addUserCallback(http) {
|
||||
|
||||
function setEventsOnUserNode(node) {
|
||||
Event.observe(node, "mousedown", listRowMouseDownHandler);
|
||||
Event.observe(node, "selectstart", listRowMouseDownHandler);
|
||||
Event.observe(node, "dblclick", onOpenUserRights);
|
||||
Event.observe(node, "click", onRowClick);
|
||||
}
|
||||
@@ -97,8 +100,8 @@ function openRightsForUserID(userID) {
|
||||
elements[elements.length-1] = "userRights?uid=" + userID;
|
||||
|
||||
window.open(elements.join("/"), "",
|
||||
"width=" + this.userRightsWidth
|
||||
+ ",height=" + this.userRightsHeight
|
||||
"width=" + userRightsWidth
|
||||
+ ",height=" + userRightsHeight
|
||||
+ ",resizable=0,scrollbars=0,toolbar=0,"
|
||||
+ "location=0,directories=0,status=0,menubar=0,copyhistory=0");
|
||||
}
|
||||
@@ -138,8 +141,8 @@ function onAclLoadHandler() {
|
||||
Event.observe(buttons[1], "click", onUserRemove);
|
||||
}
|
||||
|
||||
this.userRightsHeight = window.opener.getUsersRightsWindowHeight();
|
||||
this.userRightsWidth = window.opener.getUsersRightsWindowWidth();
|
||||
userRightsHeight = window.opener.getUsersRightsWindowHeight();
|
||||
userRightsWidth = window.opener.getUsersRightsWindowWidth();
|
||||
}
|
||||
|
||||
FastInit.addOnLoad(onAclLoadHandler);
|
||||
|
||||
Reference in New Issue
Block a user