Changeset 5846
- Timestamp:
- 03/29/12 00:10:47 (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/draw_api.js
r5841 r5846 4242 4242 }).find('[name="files[]"]').css({"height" : "20px", "width": "100px", "border-width": "0 0 0px 0px", "-moz-transform" : "none","-o-transform" : 'none'}); 4243 4243 4244 4244 4245 fileUploadMSG.find("span.message-attach-link").click(function(event){ 4245 4246 jQuery('#message-attach-dialog').html(DataLayer.render("../prototype/modules/attach_message/attach_message.ejs", {})); 4247 $( "#mailpreview_container span.ui-icon-close" ).click(); 4246 4248 jQuery('#message-attach-dialog').dialog({ 4247 4249 width:920, … … 4250 4252 modal: true, 4251 4253 closeOnEscape:true, 4252 close:function(event, ui) {event.stopPropagation(); },4254 close:function(event, ui) {event.stopPropagation(); }, 4253 4255 autoOpen:false 4254 4256 }); 4257 4258 4255 4259 jQuery.getScript("../prototype/modules/attach_message/attach_message.js", function(){ 4256 4260 jQuery('#message-attach-dialog').dialog('open'); -
trunk/prototype/modules/attach_message/attach_message.ejs
r5278 r5846 8 8 </div> 9 9 <div id="mailpreview_container"> 10 <ul id="mailpreview_tabs"> 11 <li><a href="#mailpreview_tabs_default_empty">Nenhuma aba</a></li> 12 </ul> 13 <div id="mailpreview_tabs_default_empty" class="empty-container"><span class="message" ><%=get_lang('select a message to preview')%></span></div> 10 <ul id="mailpreview_tabs"></ul> 14 11 </div> 15 12 <div id="buttons-container"> -
trunk/prototype/modules/attach_message/attach_message.js
r5832 r5846 522 522 add: function( event, ui ) { 523 523 $mailpreview_tabs.tabs('select', '#' + ui.panel.id); 524 524 525 if ($('#mailpreview_tabs_default_empty').length && $mailpreview_tabs.tabs("length") > 1) { 525 526 $mailpreview_tabs.tabs('remove', '#mailpreview_tabs_default_empty'); … … 539 540 }); 540 541 542 $( "#mailpreview_container span.ui-icon-close" ).unbind("click"); 541 543 $( "#mailpreview_container span.ui-icon-close" ).live( "click", function(e) { 542 544 var index = $("li", $mailpreview_tabs).index($(this).parent()); … … 544 546 e.stopImmediatePropagation(); 545 547 }); 548 549 if (!$mailpreview_tabs.tabs("length") && !$('#mailpreview_tabs_default_empty').length) { 550 /** 551 * TODO: internacionalizar a string 'Nenhuma aba' 552 */ 553 $mailpreview_tabs.tabs('add', '#mailpreview_tabs_default_empty', 'Nenhuma aba') 554 .find('#mailpreview_tabs_default_empty').removeClass('mailpreview-message').addClass('empty-container') 555 .html('<span class="message">' + get_lang('select a message to preview') + '</span>').end() 556 .find('.ui-tabs-nav li:first .ui-icon-close').remove(); 557 }
Note: See TracChangeset
for help on using the changeset viewer.