Changeset 3995
- Timestamp:
- 04/12/11 15:28:03 (12 years ago)
- Location:
- branches/2.2.0.1/expressoMail1_2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0.1/expressoMail1_2/inc/hook_settings.inc.php
r3994 r3995 260 260 'html' => lang('rich text') 261 261 ); 262 create_check_box('Auto close the first tab on reaching the maximum number of tabs?','auto_close_first_tab',''); 262 263 create_check_box('Insert signature automatically in new messages?','use_signature',''); 263 264 create_select_box('Signature Type','type_signature',$default,'','','','onchange="javascript:changeType(this.value);" onload="javascript:alert(this.value);"'); -
branches/2.2.0.1/expressoMail1_2/index.php
r3994 r3995 98 98 99 99 $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['quick_search_default'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['quick_search_default'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['quick_search_default'] : 1; 100 $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['auto_close_first_tab'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['auto_close_first_tab'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['auto_close_first_tab'] : "0"; 100 101 101 102 //SpellChecker -
branches/2.2.0.1/expressoMail1_2/js/abas.js
r3977 r3995 127 127 128 128 var resize = false; 129 var offWidth = Element('border_blank').offsetWidth ? Element('border_blank').offsetWidth : Element('border_blank').clientWidth; 130 if (offWidth < 200) { 131 resize = resize_borders(); 132 if (!resize){ 133 alert(get_lang('Reached maximum tab limit')); 134 return false; 135 } 136 } 129 resize = resize_borders(); 130 if (!resize){ 131 var str_continue = ''; 132 var bolContinue = true; 133 if (preferences.auto_close_first_tab == 1){ 134 str_continue = '\n' + get_lang('You must manualy close one of your tabs before opening a new one'); 135 var children = Element('border_tr').childNodes; 136 var bolDelete = true; 137 for (var i=0; i<children.length; i++) { 138 if ((children[i].nodeName === 'TD') && (children[i].id!=='border_id_0') && (children[i].id!=='border_blank')) 139 { 140 bolDelete = true; 141 var num_child = children[i].id.toString().substr(10); 142 alternate_border(num_child); 143 if (editTest(num_child)){ 144 bolDelete = false; 145 } 146 if (bolDelete){ 147 bolContinue = false; 148 delete_border(num_child, 'false'); 149 break; 150 } 151 } 152 } 153 } 154 if (bolContinue){ 155 alert(get_lang('Reached maximum tab limit') + str_continue ); 156 return false; 157 } 158 } 137 159 138 160 if (! id_value) // Is new message? … … 252 274 function draftTests(ID, msg_sent){ 253 275 var cancel = new LertButton(get_lang('cancel'), function() { 254 Element("border_id_"+ID).onclick = function () { 276 Element("border_id_"+ID).onclick = function () {alternate_border(ID);}; 255 277 }); 256 278 var yes = new LertButton(get_lang('Save'), function() { 257 if (openTab.imapUid[ID]!=undefined){ 258 delete_msgs(openTab.imapBox[ID],openTab.imapUid[ID].toString(),0,0,1); 259 delete(openTab.imapBox[ID]); 260 } 261 save_msg(ID); 262 openTab.toPreserve[ID] = false; 263 close_delete(ID, msg_sent); 264 write_msg(get_lang('Your message was save as draft in folder %1.', lang_folder('Drafts'))); 279 save_msg(ID); 280 openTab.toPreserve[ID] = false; 281 close_delete(ID, msg_sent); 282 write_msg(get_lang('Your message was save as draft in folder %1.', lang_folder('Drafts'))); 265 283 }); 266 284 var discard = new LertButton(get_lang('Discard'), function() { … … 286 304 } 287 305 306 function editTest(ID){ 307 var body = document.getElementById('body_'+ ID); 308 if (body) 309 { 310 var save_link = Element("save_message_options_"+ID); 311 if (openTab.toPreserve[ID] == undefined) 312 openTab.toPreserve[ID] = false; 313 if (((! openTab.toPreserve[ID] && ! ID.toString().match("_r")) || ((body.contentWindow) == 'object' && body.contentWindow.document.designMode.toLowerCase() == 'on')) && (save_link.onclick != '')) 314 { 315 return true; 316 } 317 } 318 return false; 319 } 320 288 321 function delete_border(ID, msg_sent) 289 322 { 290 323 var bolExecuteClose = true; 291 324 var borderElem = Element("border_id_" + ID) 292 if (borderElem) 293 294 else 295 296 325 if (borderElem){ 326 borderElem.onclick = null; // It's avoid a FF3 bug 327 }else{ 328 return false; 329 } 297 330 if (msg_sent == 'false') 298 331 { 299 var body = document.getElementById('body_'+ ID); 300 if (body) 301 { 302 var save_link = Element("save_message_options_"+ID); 303 if (openTab.toPreserve[ID] == undefined) 304 openTab.toPreserve[ID] = false; 305 if (((! openTab.toPreserve[ID] && ! ID.toString().match("_r")) || ((body.contentWindow) == 'object' && body.contentWindow.document.designMode.toLowerCase() == 'on')) && (save_link.onclick != '')) 306 { 307 draftTests(ID, msg_sent); 308 bolExecuteClose = false; 309 } 310 } 332 if (editTest(ID)){ 333 bolExecuteClose = false; 334 return(draftTests(ID, msg_sent)); 335 } 311 336 } 312 337 if (bolExecuteClose) -
branches/2.2.0.1/expressoMail1_2/setup/phpgw_pt-br.lang
r3994 r3995 650 650 Send messages with return recipient option by default expressoMail1_2 pt-br Sempre enviar mensagens com confirmação de leitura? 651 651 With this option every new email will get the return recipient option marked expressoMail1_2 pt-br Com essa opção ativa todo novo e-mail terá marcada a opção de Confirmação de leitura padrão. 652 You must manualy close one of your tabs before opening a new one expressoMail1_2 pt-br Você deve fechar uma de suas abas de edição manualmente para poder abrir outra. 653 Auto close the first tab on reaching the maximum number of tabs? expressoMail1_2 pt-br Fechar automáticamente a primeira aba ao atingir o número máximo de abas?
Note: See TracChangeset
for help on using the changeset viewer.