Changeset edfe9173 in github
- Timestamp:
- Jun 30, 2010 3:37:48 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 3940ba6
- Parents:
- 98570f6
- File:
-
- 1 edited
-
program/js/app.js (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/js/app.js
r087c7dc redfe9173 485 485 break; 486 486 487 // misc list commands488 487 case 'list': 489 488 if (this.task=='mail') { … … 505 504 break; 506 505 507 508 case 'listgroup':509 this.list_contacts(props.source, props.id);510 break;511 512 513 506 case 'load-headers': 514 507 this.load_headers(obj); 515 508 break; 516 517 509 518 510 case 'sort': … … 557 549 this.purge_mailbox(this.env.mailbox); 558 550 break; 559 560 551 561 552 // common commands used in multiple tasks … … 598 589 break; 599 590 600 case 'save-identity':601 591 case 'save': 602 592 if (this.gui_objects.editform) { … … 880 870 break; 881 871 882 case 'remove-attachment':883 this.remove_attachment(props);884 break;885 886 872 case 'insert-sig': 887 873 this.change_identity($("[name='_from']")[0], true); … … 928 914 break; 929 915 930 case 'add-contact':931 this.add_contact(props);932 break;933 934 916 // quicksearch 935 917 case 'search': … … 952 934 break; 953 935 954 case 'group-create': 955 this.add_contact_group(props) 956 break; 957 958 case 'group-rename': 959 this.rename_contact_group(); 960 break; 961 962 case 'group-delete': 963 this.delete_contact_group(); 936 case 'listgroup': 937 this.list_contacts(props.source, props.id); 964 938 break; 965 939 … … 989 963 break; 990 964 991 // collapse/expand folder992 case 'collapse-folder':993 if (props)994 this.collapse_folder(props);995 break;996 997 965 // user settings commands 998 966 case 'preferences': … … 1004 972 break; 1005 973 1006 case 'delete-identity':1007 this.delete_identity();1008 1009 974 case 'folders': 1010 975 this.goto_url('folders'); 1011 976 break; 1012 977 1013 case 'subscribe': 1014 this.subscribe_folder(props); 1015 break; 1016 1017 case 'unsubscribe': 1018 this.unsubscribe_folder(props); 1019 break; 1020 1021 case 'enable-threading': 1022 this.enable_threading(props); 1023 break; 1024 1025 case 'disable-threading': 1026 this.disable_threading(props); 1027 break; 1028 1029 case 'create-folder': 1030 this.create_folder(props); 1031 break; 1032 1033 case 'rename-folder': 1034 this.rename_folder(props); 1035 break; 1036 1037 case 'delete-folder': 1038 this.delete_folder(props); 1039 break; 1040 978 // unified command call (command name == function name) 979 default: 980 var func = command.replace('-', '_'); 981 alert(func); 982 if (this[func] && typeof this[func] == 'function') 983 this[func](props); 984 break; 1041 985 } 1042 986 … … 3737 3681 3738 3682 3739 this. add_contact_group= function()3683 this.group_create = function() 3740 3684 { 3741 3685 if (!this.gui_objects.folderlist || !this.env.address_sources[this.env.source].groups) … … 3754 3698 }; 3755 3699 3756 this. rename_contact_group= function()3700 this.group_rename = function() 3757 3701 { 3758 3702 if (!this.env.group || !this.gui_objects.folderlist) … … 3774 3718 }; 3775 3719 3776 this. delete_contact_group= function()3720 this.group_delete = function() 3777 3721 { 3778 3722 if (this.env.group) … … 3889 3833 var anchors = row.obj.getElementsByTagName('a'); 3890 3834 if (anchors[0]) 3891 anchors[0].onclick = function() { p. rename_folder(row.id); return false; };3835 anchors[0].onclick = function() { p.command('rename-folder', row.id); return false; }; 3892 3836 if (anchors[1]) 3893 anchors[1].onclick = function() { p. delete_folder(row.id); return false; };3837 anchors[1].onclick = function() { p.command('delete-folder', row.id); return false; }; 3894 3838 row.obj.onmouseover = function() { p.focus_subscription(row.id); }; 3895 3839 row.obj.onmouseout = function() { p.unfocus_subscription(row.id); }; … … 4258 4202 }; 4259 4203 4260 this.subscribe _folder= function(folder)4204 this.subscribe = function(folder) 4261 4205 { 4262 4206 if (folder) … … 4264 4208 }; 4265 4209 4266 this.unsubscribe _folder= function(folder)4210 this.unsubscribe = function(folder) 4267 4211 { 4268 4212 if (folder)
Note: See TracChangeset
for help on using the changeset viewer.
