Преглед изворни кода

add error message to phpmailer test button

CauseFX пре 5 година
родитељ
комит
7b9c62b5ec
1 измењених фајлова са 1 додато и 2 уклоњено
  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();
 });