Changeset 7663
- Timestamp:
- 12/17/12 16:42:00 (11 years ago)
- Location:
- trunk/expressoMail1_2/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/main.js
r7658 r7663 2503 2503 2504 2504 if (Element("attachments_" + border_ID)) addOriginalAttachments(new_border_ID, border_ID); 2505 2505 RichTextEditor.dataReady(new_border_ID, 'forward'); 2506 2506 // Insert the signature automaticaly at message body if use_signature preference is set 2507 2507 if (preferences.use_signature == "1") … … 2560 2560 Element('msg_number').value = ''; 2561 2561 } 2562 2562 RichTextEditor.dataReady(new_border_ID, 'new'); 2563 2563 // Insert the signature automaticaly at message body if use_signature preference is set 2564 2564 if (preferences.use_signature == "1") -
trunk/expressoMail1_2/js/rich_text_editor.js
r7637 r7663 10 10 this.plain = new Array; 11 11 this.editorReady = true; 12 this.hoho = '';13 12 } 14 13 … … 255 254 CKEDITOR.instances[id].setData(data); 256 255 } 256 257 257 cRichTextEditor.prototype.dataReady = function(id,reply) 258 258 { 259 259 var content = $("#content_id_"+id); 260 var input = content.find('.new-message-input.to:first'); 260 261 if (this.plain[id]){ 261 262 if (reply === 'forward') 262 setTimeout(function(){ content.find('.new-message-input.to').blur().focus();},400);263 setTimeout(function(){input.focus();},400); 263 264 } 264 265 else{ … … 266 267 if (reply === 'forward' ){ 267 268 setTimeout(function(){ 268 content.find('.new-message-input.to').blur().focus(); 269 },400); 269 RichTextEditor.blur(id); 270 content.find('input[name="input_subject"]').focus(); 271 input.focus(); 272 },600.); 270 273 } 271 274 else if (reply === 'new'){ 272 275 setTimeout(function(){ 273 content.find('.new-message-input.to').blur().focus(); 276 RichTextEditor.blur(id); 277 content.find('input[name="input_subject"]').focus(); 278 input.focus(); 274 279 },500); 275 280 … … 278 283 } 279 284 } 285 280 286 cRichTextEditor.prototype.setInitData = function (id,data,reply,recursion, callback){ 281 287 var content = $("#content_id_"+id); … … 376 382 377 383 } 384 385 cRichTextEditor.prototype.blur = function(id) 386 { 387 if(RichTextEditor.plain[id] === true) 388 $('#body_'+id).blur(); 389 else{ 390 var focusManager = new CKEDITOR.focusManager( CKEDITOR.instances['body_'+id] ); 391 if (focusManager) 392 focusManager.blur(); 393 } 394 } 395 378 396 //Função reseta o atributo contentEditable para resolver bug de cursor ao trocar abas 379 397 cRichTextEditor.prototype.setEditable = function(id) {
Note: See TracChangeset
for help on using the changeset viewer.