continuation
This commit is contained in:
parent
3550b68bc5
commit
b7b982305f
@ -426,7 +426,7 @@ class AdminCustomerThreads extends AdminTab
|
|||||||
<div id="reply_to_'.(int)($message['id_customer_message']).'" style="display: none; margin-top: 10px;" class="panel-answer">
|
<div id="reply_to_'.(int)($message['id_customer_message']).'" style="display: none; margin-top: 10px;" class="panel-answer">
|
||||||
<form action="'.Tools::htmlentitiesutf8($_SERVER['REQUEST_URI']).'" method="post" enctype="multipart/form-data">
|
<form action="'.Tools::htmlentitiesutf8($_SERVER['REQUEST_URI']).'" method="post" enctype="multipart/form-data">
|
||||||
<p>'.$this->l('Please type your reply below:').'</p>
|
<p>'.$this->l('Please type your reply below:').'</p>
|
||||||
<select name="order_message" id="order_message" onchange="orderOverwriteMessage(this, \''.$this->l('Do you want to overwrite your existing message?').'\')">
|
<select name="order_message" id="order_message" onchange="savOverwriteMessage(this, \''.$this->l('Do you want to overwrite your existing message?').'\')">
|
||||||
<option value="0" selected="selected">-- '.$this->l('Choose a standard message').' --</option>';
|
<option value="0" selected="selected">-- '.$this->l('Choose a standard message').' --</option>';
|
||||||
foreach ($orderMessages AS $orderMessage) {
|
foreach ($orderMessages AS $orderMessage) {
|
||||||
$output .= '<option value="'.htmlentities($orderMessage['message'], ENT_COMPAT, 'UTF-8').'">'.$orderMessage['name'].'</option>';
|
$output .= '<option value="'.htmlentities($orderMessage['message'], ENT_COMPAT, 'UTF-8').'">'.$orderMessage['name'].'</option>';
|
||||||
@ -436,7 +436,7 @@ class AdminCustomerThreads extends AdminTab
|
|||||||
<div style="width: 450px; margin-top: 0px;margin-bottom:5px;">
|
<div style="width: 450px; margin-top: 0px;margin-bottom:5px;">
|
||||||
<input type="file" name="joinFile"/>
|
<input type="file" name="joinFile"/>
|
||||||
</div>
|
</div>
|
||||||
<textarea id="txt_msg" name="reply_message">'.str_replace('\r\n', "\n", Configuration::get('PS_CUSTOMER_SERVICE_SIGNATURE', $message['id_lang'])).'</textarea>
|
<textarea id="txt_msg_'.(int)($message['id_customer_message']).'" name="reply_message">'.str_replace('\r\n', "\n", Configuration::get('PS_CUSTOMER_SERVICE_SIGNATURE', $message['id_lang'])).'</textarea>
|
||||||
<div style="text-align: right; font-style: italic; font-size: 9px; margin-top: 2px;">
|
<div style="text-align: right; font-style: italic; font-size: 9px; margin-top: 2px;">
|
||||||
'.$this->l('Your reply will be sent to:').' '.$message['email'].'
|
'.$this->l('Your reply will be sent to:').' '.$message['email'].'
|
||||||
</div>
|
</div>
|
||||||
|
@ -3474,11 +3474,16 @@ span.anticon{
|
|||||||
}
|
}
|
||||||
.panel-message input[type="file"] {
|
.panel-message input[type="file"] {
|
||||||
border :0px;
|
border :0px;
|
||||||
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
.panel-answer,
|
.panel-answer,
|
||||||
.panel-answer div {
|
.panel-answer div {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.panel-message select {
|
||||||
|
border: 1px solid #796dc7;
|
||||||
|
background-color: rgba(121,109,199,0.2);
|
||||||
|
}
|
||||||
.panel-answer textarea{
|
.panel-answer textarea{
|
||||||
width: 670px;
|
width: 670px;
|
||||||
height: 120px;
|
height: 120px;
|
||||||
|
13
js/admin.js
13
js/admin.js
@ -765,6 +765,19 @@ function orderOverwriteMessage(sl, text)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function savOverwriteMessage(sl, text, id_message)
|
||||||
|
{
|
||||||
|
var $zone = $('#txt_msg_'+id_message);
|
||||||
|
var sl_value = sl.options[sl.selectedIndex].value;
|
||||||
|
|
||||||
|
if (sl_value != '0')
|
||||||
|
{
|
||||||
|
if ($zone.val().length > 0 && !confirm(text))
|
||||||
|
return ;
|
||||||
|
$zone.val(sl_value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function setCancelQuantity(itself, id_order_detail, quantity)
|
function setCancelQuantity(itself, id_order_detail, quantity)
|
||||||
{
|
{
|
||||||
$('#cancelQuantity_' + id_order_detail).val($(itself).attr('checked') ? quantity : '');
|
$('#cancelQuantity_' + id_order_detail).val($(itself).attr('checked') ? quantity : '');
|
||||||
|
Loading…
Reference in New Issue
Block a user