Ticket #3368: freepbx_reload.php.patch
| File freepbx_reload.php.patch, 3.4 kB (added by Nick_Lewis, 3 years ago) |
|---|
-
freepbx_reload.php
old new 2 2 function freepbx_show_reload() { 3 3 /* 4 4 $.blockUI($('#reloadBox')[0], { width: '400px' }); 5 $(document.body).append( '<div style="width:100%; height:100%; background:#ccc; opacity:50%;"></div>');5 $(document.body).append("<div style=\"width:100%; height:100%; background:#ccc; opacity:50%;\"><\/div>"); 6 6 */ 7 7 8 8 $("#reload_confirm").show(); … … 63 63 freepbx_stop_reload(); 64 64 } else { 65 65 // there was a problem 66 var responsetext = '<h3>' + data.message + '</h3><div class="moreinfo">';66 var responsetext = '<h3>' + data.message + "<\/h3>" + '<div class="moreinfo">'; 67 67 68 responsetext += '<p><pre>' + data.retrieve_conf + '</pre></p>';68 responsetext += '<p><pre>' + data.retrieve_conf + "<\/pre><\/p>"; 69 69 70 70 if (data.num_errors) { 71 responsetext += '<p>' + data.num_errors + ' <?php echo _(' error(s) occured, you should view the notification log on the dashboard or main screen to check for more details.'); ?> </p>';71 responsetext += '<p>' + data.num_errors + ' <?php echo _(' error(s) occured, you should view the notification log on the dashboard or main screen to check for more details.'); ?> ' + "<\/p>"; 72 72 } 73 73 74 responsetext += '</div>'+75 '<div class="buttons"><a id="reload_response_close_btn" href="#" onclick="freepbx_stop_reload();"><img src="images/cancel.png" height="16" width="16" border="0" alt="<?php echo _('Close'); ?>" /> <?php echo _('Close'); ?> </a>'+76 ' <a id="reload_retry_btn" href="#" onclick="run_reload();"><img src="images/arrow_rotate_clockwise.png" height="16" width="16" border="0" alt="<?php echo _('Retry'); ?>" /> <?php echo _('Retry'); ?> </a> </div>';74 responsetext += "<\/div>" + 75 '<div class="buttons"><a id="reload_response_close_btn" href="#" onclick="freepbx_stop_reload();"><img src="images/cancel.png" height="16" width="16" border="0" alt="<?php echo _('Close'); ?>" /> <?php echo _('Close'); ?>' + "<\/a>" + 76 ' <a id="reload_retry_btn" href="#" onclick="run_reload();"><img src="images/arrow_rotate_clockwise.png" height="16" width="16" border="0" alt="<?php echo _('Retry'); ?>" /> <?php echo _('Retry'); ?>' + "<\/a> <\/div>"; 77 77 78 78 $('#reload_response').html(responsetext); 79 79 … … 85 85 }, 86 86 error: function(reqObj, status) { 87 87 $('#reload_response').html( 88 '<p><?php echo _('Error: Did not receive valid response from server'); ?> </p>'+89 '<div class="buttons"><a id="reload_response_close_btn" href="#" onclick="freepbx_stop_reload();"><img src="images/cancel.png" height="16" width="16" border="0" alt="<?php echo _('Close'); ?>" /> <?php echo _('Close'); ?> </a></div>'88 '<p><?php echo _('Error: Did not receive valid response from server'); ?>' + "<\/p>" + 89 '<div class="buttons"><a id="reload_response_close_btn" href="#" onclick="freepbx_stop_reload();"><img src="images/cancel.png" height="16" width="16" border="0" alt="<?php echo _('Close'); ?>" /> <?php echo _('Close'); ?>' + "<\/a><\/div>" 90 90 ); 91 91 $("#reload_reloading").slideUp(150, function() { 92 92 $("#reload_response").slideDown(150);
