Changeset 4413 for sandbox/2.2.0.2/expressoMail1_2/js/draw_api.js
- Timestamp:
- 05/13/11 18:21:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.2.0.2/expressoMail1_2/js/draw_api.js
r4365 r4413 3189 3189 } 3190 3190 3191 /** 3192 * event to enable autosave_draft on file attachment 3193 */ 3194 function save_onchange_attachment_handler () { 3195 away = false; 3196 var save_link = Element("save_message_options_"+border_id); 3197 save_link.onclick = function onclick(event) { 3198 openTab.toPreserve[border_id] = true; 3199 save_msg(border_id); 3200 }; 3201 save_link.className = 'message_options'; 3202 }; 3203 3191 3204 var add_files = document.createElement("A"); 3192 3205 add_files.setAttribute("href", "javascript:void(0)"); 3193 add_files.onclick = function () { addFile(ID); return false;}; 3206 add_files.onclick = function () { 3207 var obj = addFile(ID); 3208 if (preferences.auto_save_draft == 1 && obj) { 3209 if ( obj.addEventListener ) 3210 obj.addEventListener('click', save_onchange_attachment_handler, false); 3211 } 3212 return false; 3213 }; 3194 3214 add_files.innerHTML = get_lang("Attachments: add+"); 3195 3215 add_files.setAttribute("tabIndex","-1");
Note: See TracChangeset
for help on using the changeset viewer.