Monotone-Parent: 4fca42a51334f9648a74d6e32cb630a5c7dd125a
Monotone-Revision: b54a4a89914eab992aa8dfa993817ad238c63a44 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-10-08T14:09:58 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
0b3ca41ccc
commit
38c346083a
|
@ -1,3 +1,11 @@
|
|||
2010-10-08 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/WebServerResources/ContactsUI.js: (setEventsOnAddressBook)
|
||||
enable the "dblclick" event on non-owned addressbooks, except the
|
||||
public ones (owned by "nobody")
|
||||
(onAddressBookModify): enable the renaming of non-owned
|
||||
addressbooks, except the public ones
|
||||
|
||||
2010-10-06 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoUser.m (-_appendSystemMailAccount): check
|
||||
|
|
|
@ -969,24 +969,24 @@ function setEventsOnAddressBook(folder) {
|
|||
|
||||
node.observe("mousedown", listRowMouseDownHandler);
|
||||
node.observe("click", onRowClick);
|
||||
if (UserLogin == node.readAttribute("owner"))
|
||||
// Only the owner of the addressbook can rename it
|
||||
if (node.readAttribute("owner") != "nobody") {
|
||||
node.observe("dblclick", onAddressBookModify);
|
||||
}
|
||||
}
|
||||
|
||||
function onAddressBookModify(event) {
|
||||
var folders = $("contactFolders");
|
||||
var selected = folders.getSelectedNodes()[0];
|
||||
|
||||
if (UserLogin == selected.getAttribute("owner")) {
|
||||
if (selected.getAttribute("owner") == "nobody") {
|
||||
showAlertDialog(_("Unable to rename that folder!"));
|
||||
}
|
||||
else {
|
||||
var currentName = selected.innerHTML.unescapeHTML();
|
||||
showPromptDialog(_("Properties"),
|
||||
_("Address Book Name"),
|
||||
onAddressBookModifyConfirm,
|
||||
currentName);
|
||||
}
|
||||
else
|
||||
showAlertDialog(_("Unable to rename that folder!")); // WARNING: super users will end up here
|
||||
}
|
||||
|
||||
function onAddressBookModifyConfirm() {
|
||||
|
|
Loading…
Reference in New Issue