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>
|
2010-10-06 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
* SoObjects/SOGo/SOGoUser.m (-_appendSystemMailAccount): check
|
* SoObjects/SOGo/SOGoUser.m (-_appendSystemMailAccount): check
|
||||||
|
|
|
@ -969,24 +969,24 @@ function setEventsOnAddressBook(folder) {
|
||||||
|
|
||||||
node.observe("mousedown", listRowMouseDownHandler);
|
node.observe("mousedown", listRowMouseDownHandler);
|
||||||
node.observe("click", onRowClick);
|
node.observe("click", onRowClick);
|
||||||
if (UserLogin == node.readAttribute("owner"))
|
if (node.readAttribute("owner") != "nobody") {
|
||||||
// Only the owner of the addressbook can rename it
|
|
||||||
node.observe("dblclick", onAddressBookModify);
|
node.observe("dblclick", onAddressBookModify);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function onAddressBookModify(event) {
|
function onAddressBookModify(event) {
|
||||||
var folders = $("contactFolders");
|
var folders = $("contactFolders");
|
||||||
var selected = folders.getSelectedNodes()[0];
|
var selected = folders.getSelectedNodes()[0];
|
||||||
|
if (selected.getAttribute("owner") == "nobody") {
|
||||||
if (UserLogin == selected.getAttribute("owner")) {
|
showAlertDialog(_("Unable to rename that folder!"));
|
||||||
|
}
|
||||||
|
else {
|
||||||
var currentName = selected.innerHTML.unescapeHTML();
|
var currentName = selected.innerHTML.unescapeHTML();
|
||||||
showPromptDialog(_("Properties"),
|
showPromptDialog(_("Properties"),
|
||||||
_("Address Book Name"),
|
_("Address Book Name"),
|
||||||
onAddressBookModifyConfirm,
|
onAddressBookModifyConfirm,
|
||||||
currentName);
|
currentName);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
showAlertDialog(_("Unable to rename that folder!")); // WARNING: super users will end up here
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onAddressBookModifyConfirm() {
|
function onAddressBookModifyConfirm() {
|
||||||
|
|
Loading…
Reference in New Issue