Lines 173-182
SMTP servers
Link Here
|
173 |
<li> |
173 |
<li> |
174 |
<label for="smtp_password">Password: </label> |
174 |
<label for="smtp_password">Password: </label> |
175 |
[% IF smtp_server.password %] |
175 |
[% IF smtp_server.password %] |
176 |
<input type="password" name="smtp_password" id="smtp_password" size="60" value="****"/> |
176 |
<input type="password" name="smtp_password" id="smtp_password" size="60" value="****"/><a href="#" id="clear_password_changes" title="Clear password changes" aria-label="Clear password changes"> <i class="fa fa-undo" aria-hidden="true"></i></a> |
177 |
[% ELSE %] |
177 |
[% ELSE %] |
178 |
<input type="password" name="smtp_password" id="smtp_password" size="60" value=""/> |
178 |
<input type="password" name="smtp_password" id="smtp_password" size="60" value=""/> |
179 |
[% END %] |
179 |
[% END %] |
|
|
180 |
<input type="hidden" name="password_changed" id="password_changed" value="no"/> |
180 |
</li> |
181 |
</li> |
181 |
<li> |
182 |
<li> |
182 |
<label for="smtp_debug_mode">Debug mode: </label> |
183 |
<label for="smtp_debug_mode">Debug mode: </label> |
Lines 271-276
SMTP servers
Link Here
|
271 |
<script> |
272 |
<script> |
272 |
$(document).ready(function() { |
273 |
$(document).ready(function() { |
273 |
|
274 |
|
|
|
275 |
$("#smtp_password").on( 'change', function () { |
276 |
$("#password_changed").val("yes"); |
277 |
}); |
278 |
|
279 |
$("#clear_password_changes").on( 'click', function (e) { |
280 |
e.preventDefault(); |
281 |
$("#smtp_password").val("****"); |
282 |
$("#password_changed").val("no"); |
283 |
}); |
284 |
|
274 |
var smtp_servers_url = '/api/v1/config/smtp_servers'; |
285 |
var smtp_servers_url = '/api/v1/config/smtp_servers'; |
275 |
window.smtp_servers = $("#smtp_servers").api({ |
286 |
window.smtp_servers = $("#smtp_servers").api({ |
276 |
"ajax": { |
287 |
"ajax": { |
277 |
- |
|
|