Skip to content
Snippets Groups Projects
Commit 2293f4f3 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #8550 fix button color switch

parent d9e02d51
No related branches found
No related tags found
No related merge requests found
...@@ -846,6 +846,14 @@ function get_form_txt($values, $path_manage_action, $id_action, $table, $module, ...@@ -846,6 +846,14 @@ function get_form_txt($values, $path_manage_action, $id_action, $table, $module,
if (!empty($sr['type'])) { if (!empty($sr['type'])) {
$frm_str .= 'value="'. $sr['type'].'"'; $frm_str .= 'value="'. $sr['type'].'"';
} }
if ($sr['type'] == 'entity') {
$frm_str .= '<script>$j("#sender_recipient_icon_contactsUsers").css({"color":"#666"});</script>';
$frm_str .= '<script>$j("#sender_recipient_icon_entities").css({"color":"#135F7F"});</script>';
} else {
$frm_str .= '<script>$j("#sender_recipient_icon_contactsUsers").css({"color":"#135F7F"});</script>';
$frm_str .= '<script>$j("#sender_recipient_icon_entities").css({"color":"#666"});</script>';
}
$frm_str .= '/>'; $frm_str .= '/>';
$frm_str .= '</tr>'; $frm_str .= '</tr>';
......
...@@ -784,6 +784,13 @@ if ($stmt->rowCount() == 0) { ...@@ -784,6 +784,13 @@ if ($stmt->rowCount() == 0) {
} }
if (empty($disabledAttr)) { if (empty($disabledAttr)) {
echo '<i id="sender_recipient_icon_contactsUsers" class="fa fa-user" onclick="switchAutoCompleteType(\'sender_recipient\',\'contactsUsers\');" style="color:#135F7F;display: inline-block;cursor:pointer;" title="'._CONTACTS_USERS_LIST.'" ></i> <i id="sender_recipient_icon_entities" class="fa fa-sitemap" onclick="switchAutoCompleteType(\'sender_recipient\',\'entities\');" style="display: inline-block;cursor:pointer;" title="'._ENTITIES_LIST.'" ></i>'; echo '<i id="sender_recipient_icon_contactsUsers" class="fa fa-user" onclick="switchAutoCompleteType(\'sender_recipient\',\'contactsUsers\');" style="color:#135F7F;display: inline-block;cursor:pointer;" title="'._CONTACTS_USERS_LIST.'" ></i> <i id="sender_recipient_icon_entities" class="fa fa-sitemap" onclick="switchAutoCompleteType(\'sender_recipient\',\'entities\');" style="display: inline-block;cursor:pointer;" title="'._ENTITIES_LIST.'" ></i>';
if ($sr['type'] == 'entity') {
echo '<script>$j("#sender_recipient_icon_contactsUsers").css({"color":"#666"});</script>';
echo '<script>$j("#sender_recipient_icon_entities").css({"color":"#135F7F"});</script>';
} else {
echo '<script>$j("#sender_recipient_icon_contactsUsers").css({"color":"#135F7F"});</script>';
echo '<script>$j("#sender_recipient_icon_entities").css({"color":"#666"});</script>';
}
} }
echo '<div class="typeahead__container" style="width: 206px;"><div class="typeahead__field"><span class="typeahead__query">'; echo '<div class="typeahead__container" style="width: 206px;"><div class="typeahead__field"><span class="typeahead__query">';
echo "<textarea style='font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;font-size: 11px;padding: 5px;width: 206px;max-width: 206px;' name='sender_recipient' id='sender_recipient' rows='3' class='{$disabledClass}' {$disabledAttr}/>"; echo "<textarea style='font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;font-size: 11px;padding: 5px;width: 206px;max-width: 206px;' name='sender_recipient' id='sender_recipient' rows='3' class='{$disabledClass}' {$disabledAttr}/>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment