Mantis 2175: Calendar - menu contextuel des tâches
Monotone-Parent: 9a9029239df8b59ccf4609e50402e80e31085154 Monotone-Revision: 7ac5d165aefe44d7baf56c60ea6bdd8b100d1675 Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-08-25T17:34:37 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
b7c9a59791
commit
2723e6ffeb
|
@ -522,3 +522,7 @@ vtodo_class2 = "(Tarefa Confidencial)";
|
||||||
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
|
|
||||||
|
"Open Task..." = "Open Task...";
|
||||||
|
"Mark Completed" = "Mark Completed";
|
||||||
|
"Delete Task" = "Delete Task";
|
||||||
|
|
|
@ -522,3 +522,7 @@ vtodo_class2 = "(Důvěrný úkol)";
|
||||||
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
|
|
||||||
|
"Open Task..." = "Open Task...";
|
||||||
|
"Mark Completed" = "Mark Completed";
|
||||||
|
"Delete Task" = "Delete Task";
|
||||||
|
|
|
@ -522,3 +522,7 @@ vtodo_class2 = "(Vertrouwelijke taak)";
|
||||||
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
|
|
||||||
|
"Open Task..." = "Open Task...";
|
||||||
|
"Mark Completed" = "Mark Completed";
|
||||||
|
"Delete Task" = "Delete Task";
|
||||||
|
|
|
@ -522,3 +522,7 @@ vtodo_class2 = "(Confidential task)";
|
||||||
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
|
|
||||||
|
"Open Task..." = "Open Task...";
|
||||||
|
"Mark Completed" = "Mark Completed";
|
||||||
|
"Delete Task" = "Delete Task";
|
||||||
|
|
|
@ -522,3 +522,7 @@ vtodo_class2 = "(Tâche confidentielle)";
|
||||||
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
|
|
||||||
|
"Open Task..." = "Ouvrir la tâche...";
|
||||||
|
"Mark Completed" = "Marquer comme accomplie";
|
||||||
|
"Delete Task" = "Supprimer la tâche";
|
||||||
|
|
|
@ -522,3 +522,7 @@ vtodo_class2 = "(Vertrauliche Aufgabe)";
|
||||||
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
|
|
||||||
|
"Open Task..." = "Open Task...";
|
||||||
|
"Mark Completed" = "Mark Completed";
|
||||||
|
"Delete Task" = "Delete Task";
|
||||||
|
|
|
@ -522,3 +522,7 @@ vtodo_class2 = "(Bizalmas feladat)";
|
||||||
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
|
|
||||||
|
"Open Task..." = "Open Task...";
|
||||||
|
"Mark Completed" = "Mark Completed";
|
||||||
|
"Delete Task" = "Delete Task";
|
||||||
|
|
|
@ -522,3 +522,7 @@ vtodo_class2 = "(Attività confidenziale)";
|
||||||
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
|
|
||||||
|
"Open Task..." = "Open Task...";
|
||||||
|
"Mark Completed" = "Mark Completed";
|
||||||
|
"Delete Task" = "Delete Task";
|
||||||
|
|
|
@ -522,3 +522,7 @@ vtodo_class2 = "(Confidential task)";
|
||||||
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
|
|
||||||
|
"Open Task..." = "Open Task...";
|
||||||
|
"Mark Completed" = "Mark Completed";
|
||||||
|
"Delete Task" = "Delete Task";
|
||||||
|
|
|
@ -522,3 +522,7 @@ vtodo_class2 = "(Tarea confidencial)";
|
||||||
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagHasChanged" = "If you change your calendar's tag, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
|
|
||||||
|
"Open Task..." = "Open Task...";
|
||||||
|
"Mark Completed" = "Mark Completed";
|
||||||
|
"Delete Task" = "Delete Task";
|
||||||
|
|
|
@ -522,3 +522,7 @@ vtodo_class2 = "(Tasg gyhoeddus)";
|
||||||
"tagHasChanged" = "If you change your calendar's tag, you'll need to perform a slow sync on your mobile device.\nContinue?";
|
"tagHasChanged" = "If you change your calendar's tag, you'll need to perform a slow sync on your mobile device.\nContinue?";
|
||||||
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
"tagWasAdded" = "If you want to synchronize this calendar, you'll need to reload the data on your mobile device.\nContinue?";
|
||||||
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to perform a slow sync on your mobile device.\nContinue?";
|
"tagWasRemoved" = "If you remove this calendar from synchronization, you'll need to perform a slow sync on your mobile device.\nContinue?";
|
||||||
|
|
||||||
|
"Open Task..." = "Open Task...";
|
||||||
|
"Mark Completed" = "Mark Completed";
|
||||||
|
"Delete Task" = "Delete Task";
|
||||||
|
|
|
@ -62,6 +62,16 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="menu" id="tasksListMenu">
|
||||||
|
<ul>
|
||||||
|
<li><var:string label:value="Open Task..."/></li>
|
||||||
|
<li><var:string label:value="New Task..."/></li>
|
||||||
|
<li><!-- separator --></li>
|
||||||
|
<li><var:string label:value="Mark Completed"/></li>
|
||||||
|
<li><var:string label:value="Delete Task"/></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="menu" id="calendarsMenu">
|
<div class="menu" id="calendarsMenu">
|
||||||
<ul>
|
<ul>
|
||||||
<li><var:string label:value="Modify"/></li>
|
<li><var:string label:value="Modify"/></li>
|
||||||
|
|
|
@ -688,6 +688,8 @@ function tasksListCallback(http) {
|
||||||
var t = new Element ("span");
|
var t = new Element ("span");
|
||||||
t.update (data[i][3]);
|
t.update (data[i][3]);
|
||||||
listItem.appendChild (t);
|
listItem.appendChild (t);
|
||||||
|
|
||||||
|
listItem.attachMenu ("tasksListMenu");
|
||||||
}
|
}
|
||||||
|
|
||||||
list.scrollTop = list.previousScroll;
|
list.scrollTop = list.previousScroll;
|
||||||
|
@ -1593,32 +1595,7 @@ function updateTaskStatus(event) {
|
||||||
if (isSafari() && !isSafari3()) {
|
if (isSafari() && !isSafari3()) {
|
||||||
newStatus = (newStatus ? 0 : 1);
|
newStatus = (newStatus ? 0 : 1);
|
||||||
}
|
}
|
||||||
|
_updateTaskCompletion (this.parentNode, newStatus);
|
||||||
url = (ApplicationBaseURL + this.parentNode.calendar
|
|
||||||
+ "/" + this.parentNode.cname + "/changeStatus?status=" + newStatus);
|
|
||||||
|
|
||||||
var http = createHTTPClient();
|
|
||||||
if (http) {
|
|
||||||
// TODO: add parameter to signal that we are only interested in OK
|
|
||||||
http.open("POST", url, false /* not async */);
|
|
||||||
http.url = url;
|
|
||||||
try {
|
|
||||||
http.send("");
|
|
||||||
}
|
|
||||||
catch (e) {
|
|
||||||
/* IE7 tends to generate "transaction aborted" errors for synchronous
|
|
||||||
transactions returning HTTP code 204. */
|
|
||||||
log("exception during http.send (expected on IE7)");
|
|
||||||
}
|
|
||||||
if (isHttpStatus204(http.status))
|
|
||||||
refreshTasks();
|
|
||||||
else if (parseInt(http.status) == 403) {
|
|
||||||
window.alert(clabels["You don't have the required privileges to perform the operation."]);
|
|
||||||
this.checked = !this.checked;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
log ("updateTaskStatus: error (http code " + http.status + ")");
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1771,6 +1748,9 @@ function getMenus() {
|
||||||
null, "-", onMenuSharing);
|
null, "-", onMenuSharing);
|
||||||
menus["searchMenu"] = new Array(setSearchCriteria);
|
menus["searchMenu"] = new Array(setSearchCriteria);
|
||||||
|
|
||||||
|
menus["tasksListMenu"] = new Array (editEvent, newTask, "-",
|
||||||
|
marksTasksAsCompleted, deleteEvent);
|
||||||
|
|
||||||
var calendarsMenu = $("calendarsMenu");
|
var calendarsMenu = $("calendarsMenu");
|
||||||
if (calendarsMenu)
|
if (calendarsMenu)
|
||||||
calendarsMenu.prepareVisibility = onCalendarsMenuPrepareVisibility;
|
calendarsMenu.prepareVisibility = onCalendarsMenuPrepareVisibility;
|
||||||
|
@ -1778,6 +1758,29 @@ function getMenus() {
|
||||||
return menus;
|
return menus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function newTask () {
|
||||||
|
return newEvent(this, 'task');
|
||||||
|
}
|
||||||
|
|
||||||
|
function marksTasksAsCompleted () {
|
||||||
|
var selectedTasks = $$("UL#tasksList LI._selected");
|
||||||
|
|
||||||
|
for (var i = 0; i < selectedTasks.length; i++) {
|
||||||
|
var task = selectedTasks[i];
|
||||||
|
_updateTaskCompletion (task, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _updateTaskCompletion (task, value) {
|
||||||
|
var checkBox = task.down ("INPUT");
|
||||||
|
url = (ApplicationBaseURL + task.calendar
|
||||||
|
+ "/" + task.cname + "/changeStatus?status=" + value);
|
||||||
|
|
||||||
|
triggerAjaxRequest(url, refreshTasks, null);
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
function onMenuSharing(event) {
|
function onMenuSharing(event) {
|
||||||
if ($(this).hasClassName("disabled"))
|
if ($(this).hasClassName("disabled"))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue