~ubuntu-branches/ubuntu/precise/lightning-extension/precise

« back to all changes in this revision

Viewing changes to calendar/base/content/calendar-common-sets.js

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-02-07 12:00:41 UTC
  • mfrom: (1.1.16)
  • Revision ID: package-import@ubuntu.com-20120207120041-qo3fapzsweii9cra
Tags: 1.3~b1+build1-0ubuntu1
* New upstream release from the beta channel (CALENDAR_1_3b1_BUILD1)
* Drop 02_fix_system_libxul_build.patch - this is fixed upstream
* Add mozilla/mfbt to tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
923
923
  }
924
924
}
925
925
 
 
926
/**
 
927
 * Returns the selected items, based on which mode we are currently in and what task tree is focused
 
928
 */
 
929
function getSelectedItems() {
 
930
    if (calendarController.todo_tasktree_focused) {
 
931
        return getSelectedTasks();
 
932
    }
 
933
 
 
934
    return currentView().getSelectedItems({});
 
935
}
 
936
 
 
937
/**
 
938
 * Deletes the selected items, based on which mode we are currently in and what task tree is focused
 
939
 */
 
940
function deleteSelectedItems() {
 
941
    if (calendarController.todo_tasktree_focused) {
 
942
        deleteToDoCommand();
 
943
    } else if (calendarController.isInMode("calendar")) {
 
944
        deleteSelectedEvents();
 
945
    }
 
946
}
 
947
 
926
948
function calendarUpdateNewItemsCommand() {
927
949
    let oldValue = CalendarNewItemsCommandEnabled;
928
950