| Server IP : 162.214.74.102 / Your IP : 216.73.217.80 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/public_html/lrsys_apps/meridional/ui/lib/jslib/ |
Upload File : |
$(document).ready(function () {
var $modal = $('#ajax-modal');
var sysrender = $('#application_ajaxrender');
var _url = $("#_url").val();
sysrender.on('click', '.ve', function(e){
e.preventDefault();
var vid = this.id;
var id = vid.replace("f", "");
id = id.replace("s", "");
// var id = $(this).closest('tr').attr('id');
// create the backdrop and wait for next modal to be triggered
$('body').modalmanager('loading');
$modal.load( _url + 'settings/email-templates-view/' + id, '', function(){
$modal.modal();
$('.sysedit').summernote({
height: 400
});
});
});
$modal.on('click', '#update', function(){
$modal.modal('loading');
var _url = $("#_url").val();
$.post(_url + 'settings/update-email-template', {
message: $('.sysedit').code(),
subject: $('#subject').val(),
id: $('#sid').val(),
send: $('#send').val()
}).done(function (data) {
var _url = $("#_url").val();
$modal
.modal('loading')
.find('.modal-body')
.prepend('<div class="alert alert-success fade in">' + data +
'</div>');
$(".alert").fadeTo(2000, 500).slideUp(500, function(){
$(".alert").alert('close');
});
});
});
//$modal.on('click', '#suspend', function(){
// $modal.modal('loading');
// setTimeout(function(){
//
//
// var _url = $("#_url").val();
// $.post(_url + 'plugins/flmcs/init/ajaxsuspend', $('#edit_form').serialize(), function(data){
//
// setTimeout(function () {
// var id = $("#sid").val();
// $modal.load('?ng=plugins/flmcs/init/ajax_status/' + id, '', function(){
// $modal.modal();
// $modal
// .modal('loading')
// .find('.modal-body')
// .prepend('<div class="alert alert-success fade in">' + data +
//
// '</div>');
// });
//
// }, 2000);
//
// });
// }, 1000);
//
//});
//
//$modal.on('click', '#unsuspend', function(){
// $modal.modal('loading');
// setTimeout(function(){
//
//
// var _url = $("#_url").val();
// $.post(_url + 'plugins/flmcs/init/ajaxunsuspend', $('#edit_form').serialize(), function(data){
//
// setTimeout(function () {
// var id = $("#sid").val();
// $modal.load('?ng=plugins/flmcs/init/ajax_status/' + id, '', function(){
// $modal.modal();
// $modal
// .modal('loading')
// .find('.modal-body')
// .prepend('<div class="alert alert-success fade in">' + data +
//
// '</div>');
// });
// }, 2000);
// });
// }, 1000);
//
//});
$modal.on('hidden.bs.modal', function () {
location.reload();
})
});