<?php /* Smarty version Smarty-3.1.19, created on 2018-10-13 14:39:05
         compiled from "admin/templates/default/configuration-test-email-btn.tpl" */ ?>
<?php /*%%SmartyHeaderCode:16607544055bc23bc9d3cbc2-48826999%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '15afbefa53ed864d69e1749117c66a14d78824a3' => 
    array (
      0 => 'admin/templates/default/configuration-test-email-btn.tpl',
      1 => 1528949094,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '16607544055bc23bc9d3cbc2-48826999',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_5bc23bc9d42396_18035866',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5bc23bc9d42396_18035866')) {function content_5bc23bc9d42396_18035866($_smarty_tpl) {?><div class="row">
    <label class="col col-lg-2 control-label">&nbsp;</label>
    <div class="col col-lg-8">
        <button type="button" class="btn btn-primary btn-sm" id="js-cmd-send-test-email" data-loading-test="<?php echo iaSmarty::lang(array('key'=>'sending'),$_smarty_tpl);?>
"><?php echo iaSmarty::lang(array('key'=>'send_test_email'),$_smarty_tpl);?>
</button>
        <span class="label label-info" style="display: none"><?php echo iaSmarty::lang(array('key'=>'save_changes_to_send_test_email'),$_smarty_tpl);?>
</span>
        <p class="help-block"><?php echo iaSmarty::lang(array('key'=>'send_test_email_note'),$_smarty_tpl);?>
</p>
    </div>
</div>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('ia_add_js', array()); $_block_repeat=true; echo iaSmarty::ia_add_js(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

$(function() {
    var $btn = $('#js-cmd-send-test-email'),
        $form = $btn.closest('form');

    intelli.dataHash = $form.serialize();

    $('input, textarea, select', $form).change(function() {
        var changed = intelli.dataHash !== $form.serialize(),
            $msg = $btn.next();

        $btn.prop('disabled', changed);
        changed ? $msg.fadeIn() : $msg.fadeOut();
    });

    $btn.on('click', function() {
        $btn.button('loading');

        intelli.post(intelli.config.admin_url + '/actions.json', { action: 'send-test-email' }, function(response) {
            $btn.button('reset');
            intelli.notifFloatBox({ msg: response.message, type: response.result ? 'success' : 'error', autohide: true });
        });
    });
});
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo iaSmarty::ia_add_js(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php }} ?>
