Sfoglia il codice sorgente

Added code for email button on user settings tab

causefx 7 anni fa
parent
commit
b0f6d4e1c0
3 ha cambiato i file con 11 aggiunte e 2 eliminazioni
  1. 10 1
      js/custom.js
  2. 0 0
      js/custom.min.js
  3. 1 1
      js/functions.js

+ 10 - 1
js/custom.js

@@ -1583,7 +1583,7 @@ $(document).on("click", ".purgeLog", function () {
     }
 
 });
-//Show Passowrd
+//Show Password
 $(document).on("click", ".showPassword", function () {
     var toggle = $(this).parent().parent().find('.password-alt');
     if (toggle.attr('type') === "password") {
@@ -1593,6 +1593,15 @@ $(document).on("click", ".showPassword", function () {
     }
     $(this).find('.passwordToggle').toggleClass('fa-eye').toggleClass('fa-eye-slash');
 });
+$(document).on("click", ".emailUser", function () {
+    var email = $(this).parent().parent().attr('data-email');
+    if(activeInfo.plugins["PHPMAILER-enabled"] == true){
+        $('.emailModal').click();
+        $('#sendEmailToInput').val(email);
+    }else{
+        message('Email','Plugin not setup',activeInfo.settings.notifications.position,'#FFF','warning','5000');
+    }
+});
 // calendar popups
 $(document).on('click', "a[class*=ID-]", function(){
     //$("#preloader").fadeIn();

File diff suppressed because it is too large
+ 0 - 0
js/custom.min.js


+ 1 - 1
js/functions.js

@@ -1926,7 +1926,7 @@ function buildUserManagementItem(array){
 				<br/><span class="text-muted">`+moment(v.register_date).format('LT')+`</span></td>
 			`+buildUserGroupSelect(array.groups,v.id,v.group_id)+`
 			<td><button type="button" class="btn btn-info btn-outline btn-circle btn-lg m-r-5 editUserButton popup-with-form" href="#edit-user-form" data-effect="mfp-3d-unfold"><i class="ti-pencil-alt"></i></button></td>
-			<td><button type="button" class="btn btn-info btn-outline btn-circle btn-lg m-r-20"><i class="ti-email"></i></button></td>
+			<td><button type="button" class="btn btn-info btn-outline btn-circle btn-lg m-r-20 emailUser"><i class="ti-email"></i></button></td>
 			<td><button type="button" class="btn btn-danger btn-outline btn-circle btn-lg m-r-5 `+disabledDelete+`"><i class="ti-trash"></i></button></td>
 		</tr>
 		`;

Some files were not shown because too many files changed in this diff