Explorar el Código

add error message to phpmailer test button

CauseFX hace 5 años
padre
commit
7b9c62b5ec
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      api/plugins/js/php-mailer.js

+ 1 - 2
api/plugins/js/php-mailer.js

@@ -256,8 +256,7 @@ $(document).on('click', '.phpmSendTestEmail', function() {
             messageSingle('',response.message,activeInfo.settings.notifications.position,'#FFF','error','5000');
         }
     }).fail(function(xhr, data) {
-    	console.log(data)
-        console.error("Organizr Function: API Connection Failed");
+	    OrganizrApiError(xhr, 'Mailer Error');
     });
     ajaxloader();
 });