mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
move js for sending test mail into view
This commit is contained in:
parent
c01a84cfb7
commit
47a72cc2db
|
@ -233,25 +233,6 @@ $(document).ready( function() {
|
||||||
'json'
|
'json'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
$('a.sendtestmail').click(function(ev){
|
|
||||||
ev.preventDefault();
|
|
||||||
$.ajax({url: '../op/op.Ajax.php',
|
|
||||||
type: 'GET',
|
|
||||||
dataType: "json",
|
|
||||||
data: {command: 'testmail'},
|
|
||||||
success: function(data) {
|
|
||||||
console.log(data);
|
|
||||||
noty({
|
|
||||||
text: data.msg,
|
|
||||||
type: (data.error) ? 'error' : 'success',
|
|
||||||
dismissQueue: true,
|
|
||||||
layout: 'topRight',
|
|
||||||
theme: 'defaultTheme',
|
|
||||||
timeout: 1500,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
$('a.movefolder').click(function(ev){
|
$('a.movefolder').click(function(ev){
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
|
|
|
@ -55,6 +55,26 @@ class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style {
|
||||||
$('#settingstab li a').click(function(event) {
|
$('#settingstab li a').click(function(event) {
|
||||||
$('#currenttab').val($(event.currentTarget).data('target').substring(1));
|
$('#currenttab').val($(event.currentTarget).data('target').substring(1));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('a.sendtestmail').click(function(ev){
|
||||||
|
ev.preventDefault();
|
||||||
|
$.ajax({url: '../op/op.Ajax.php',
|
||||||
|
type: 'GET',
|
||||||
|
dataType: "json",
|
||||||
|
data: {command: 'testmail'},
|
||||||
|
success: function(data) {
|
||||||
|
console.log(data);
|
||||||
|
noty({
|
||||||
|
text: data.msg,
|
||||||
|
type: (data.error) ? 'error' : 'success',
|
||||||
|
dismissQueue: true,
|
||||||
|
layout: 'topRight',
|
||||||
|
theme: 'defaultTheme',
|
||||||
|
timeout: 1500,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
<?php
|
<?php
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
@ -456,7 +476,7 @@ if(!is_writeable($settings->_configFilePath)) {
|
||||||
<!--
|
<!--
|
||||||
-- SETTINGS - SYSTEM - SMTP
|
-- SETTINGS - SYSTEM - SMTP
|
||||||
-->
|
-->
|
||||||
<tr ><td><b> <?php printMLText("settings_SMTP");?></b></td><td><a class="btn sendtestmail">Send test mail</a></td> </tr>
|
<tr ><td><b> <?php printMLText("settings_SMTP");?></b></td><td><a class="btn sendtestmail"><?php printMLText('send_test_mail'); ?></a></td> </tr>
|
||||||
<tr title="<?php printMLText("settings_smtpServer_desc");?>">
|
<tr title="<?php printMLText("settings_smtpServer_desc");?>">
|
||||||
<td><?php printMLText("settings_smtpServer");?>:</td>
|
<td><?php printMLText("settings_smtpServer");?>:</td>
|
||||||
<td><?php $this->showTextField("smtpServer", $settings->_smtpServer); ?></td>
|
<td><?php $this->showTextField("smtpServer", $settings->_smtpServer); ?></td>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user