Changeset 7520 for trunk/expressoMail1_2/js/main.js
- Timestamp:
- 11/14/12 15:35:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/main.js
r7514 r7520 463 463 function watch_changes_in_msg(border_id) 464 464 { 465 console.log("oi"); 465 466 if (document.getElementById('border_id_'+border_id)) 466 467 { … … 2246 2247 var content = $("#content_id_"+new_border_ID); 2247 2248 2249 //It is verifying if the message was modified or not. 2250 var btnSaveVerify = function(){ 2251 $("#content_id_"+currentTab+" .save").button("disable") 2252 2253 2254 $("#content_id_"+currentTab+" .to").keydown(function() { 2255 $("#content_id_"+currentTab+" .save").button("enable"); 2256 } ); 2257 $("#content_id_"+currentTab+" input[name=input_subject]").keydown(function() { 2258 $("#content_id_"+currentTab+" .save").button("enable"); 2259 } ); 2260 2261 RichTextEditor.keydown(new_border_ID); 2262 } 2263 2248 2264 switch(type){ 2249 2265 case "reply_without_history": 2266 btnSaveVerify(); 2267 2250 2268 RichTextEditor.replyController = true; //Seta o editor como modo reply 2251 2269 content.find('[name="input_to"]').val(data.to); … … 2264 2282 break; 2265 2283 case "reply_with_history": 2284 btnSaveVerify(); 2285 2266 2286 RichTextEditor.replyController = true; //Seta o editor como modo reply 2267 2287 title = "Re: " + html_entities(data.subject); … … 2283 2303 break; 2284 2304 case "reply_to_all_without_history": 2305 btnSaveVerify(); 2306 2285 2307 RichTextEditor.replyController = true; //Seta o editor como modo reply 2286 2308 // delete user email from to_all array. … … 2329 2351 break; 2330 2352 case "reply_to_all_with_history": 2353 btnSaveVerify(); 2354 2331 2355 RichTextEditor.replyController = true; //Seta o editor como modo reply 2332 2356 //delete user email from to_all array. … … 2383 2407 break; 2384 2408 case "forward": 2409 btnSaveVerify(); 2410 2385 2411 title = "Fw: " + html_entities(data.subject); 2386 2412 content.find(".subject").val("Fw: " + data.subject); … … 2406 2432 break; 2407 2433 case "new": 2434 2435 btnSaveVerify(); 2436 2408 2437 title = get_lang("New Message"); 2409 2438 if(Element('msg_number').value) { … … 2435 2464 break; 2436 2465 case "edit": 2437 2466 btnSaveVerify(); 2467 2438 2468 if(flagged == 'F') 2439 2469 $(".important").addClass("expressomail-button-icon-ative"); … … 3359 3389 function autoSave( ID ) 3360 3390 { 3391 $(".save").addClass("clicked"); 3392 3361 3393 saveButtonDisabled = $("#content_id_"+ID).find(".save").button('option','disabled'); 3362 3394 if(autoSaveControl.status[ID] === false && !saveButtonDisabled) … … 3366 3398 function save_msg(border_id){ 3367 3399 3400 if(!$("content_id_"+border_id+" .save").hasClass("clicked")){ 3401 $("content_id_"+border_id+" .save").addClass("clicked"); 3402 } 3403 3404 3368 3405 //seta o status do auto_save = true 3369 3406 if (preferences.auto_save_draft == 1)
Note: See TracChangeset
for help on using the changeset viewer.