Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberroland committed Jan 4, 2024
1 parent a93ebbb commit c8dbbcf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lam/lib/modules/inetOrgPerson.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use LAM\TYPES\ConfiguredType;
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2006 Tilo Lutz
2005 - 2023 Roland Gruber
2005 - 2024 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -2957,8 +2957,9 @@ class inetOrgPerson extends baseModule implements passwordService,AccountStatusP
const data = await response.json();
if (data.success) {
if (data.html) {
jQuery(\'#inetOrgPersonPhotoUploadContent\').html(data.html);
document.getElementById(\'inetOrgPersonPhotoUploadContent\').innerHTML = data.html;
window.lam.tools.webcam.init();
window.lam.html.initCropping();
}
}
else if (data.error) {
Expand Down
5 changes: 3 additions & 2 deletions lam/templates/lib/500_lam.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2023 Roland Gruber
Copyright (C) 2003 - 2024 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -1393,8 +1393,9 @@ window.lam.tools.webcam.uploadSelfService = function(event, tokenName, tokenValu
const jsonData = await response.json();
if (jsonData.success) {
if (jsonData.html) {
jQuery('#' + contentId).html(jsonData.html);
document.getElementById(contentId).innerHTML = jsonData.html;
window.lam.tools.webcam.init();
window.lam.html.initCropping();
}
}
else if (jsonData.error) {
Expand Down

0 comments on commit c8dbbcf

Please sign in to comment.