[+] BO : in order tab you have new information of new customer message
This commit is contained in:
@@ -147,6 +147,7 @@
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var timer;
|
||||
$(document).ready(function(){
|
||||
$('select[name=id_employee_forward]').change(function(){
|
||||
if ($(this).val() >= 0)
|
||||
@@ -164,7 +165,27 @@
|
||||
$(this).val('');
|
||||
}
|
||||
});
|
||||
timer = setInterval("markAsRead()", 3000);
|
||||
});
|
||||
|
||||
|
||||
function markAsRead()
|
||||
{
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'ajax-tab.php',
|
||||
async: true,
|
||||
dataType: 'json',
|
||||
data: {
|
||||
controller: 'AdminCustomerThreads',
|
||||
action: 'markAsRead',
|
||||
token : '{$token}',
|
||||
id_thread: {$id_customer_thread}
|
||||
}
|
||||
});
|
||||
clearInterval(timer);
|
||||
timer = null;
|
||||
}
|
||||
</script>
|
||||
|
||||
{/block}
|
||||
|
||||
@@ -90,6 +90,10 @@
|
||||
<dt>{l s='Messages:'}</dt>
|
||||
<dd>{sizeof($messages)}</dd>
|
||||
|</dl>
|
||||
<dl>
|
||||
<dt><a href="{$link->getAdminLink('AdminCustomerThreads')|escape:'htmlall':'UTF-8'}">{l s='New Customer Messages:'}</a></dt>
|
||||
<dd><a href="{$link->getAdminLink('AdminCustomerThreads')|escape:'htmlall':'UTF-8'}">{sizeof($customer_thread_message)}</a></dd>
|
||||
|</dl>
|
||||
<dl>
|
||||
<dt>{l s='Products:'}</dt>
|
||||
<dd id="product_number">{sizeof($products)}</dd>
|
||||
|
||||
Reference in New Issue
Block a user