File tree Expand file tree Collapse file tree 3 files changed +5
-13
lines changed
Expand file tree Collapse file tree 3 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,10 @@ function addUserContact(obj, userid) {
6060 ) ;
6161}
6262var clmodeswitchdiv = "" ;
63- function showContactModeSwitcher ( div , contactid ) {
63+ function showContactModeSwitcher ( element , div , contactid ) {
6464 clmodeswitchdiv = div ;
65- updatePopup (
65+ updatePopupAtElement (
66+ element ,
6667 "/pm.php?SHOW_CONTACT_MODESWITCH=1&contactid=" + contactid ,
6768 70
6869 ) ;
Original file line number Diff line number Diff line change 123123{% endmacro %}
124124
125125{% macro contactModeSwitcher(contact , div ) %}
126- {% if contact %}
127- {% set mode = contact .getMode .value %}
128- {% set description = contact .getMode .getTitle %}
129- {% if div %}
130- <span class =" cltype{{ mode }}" id =" contact{{ contact .getId }}"
131- onclick =" showContactModeSwitcher('{{ div }}',{{ contact .getId }});" >{{ description }}</span >
132- {% else %}
133- <span class =" cltype{{ mode }}" style =" cursor: auto;" >{{ description }}</span >
134- {% endif %}
135- {% endif %}
126+ {% include ' html/user/contactMode.twig' %}
136127{% endmacro %}
137128
138129{% macro translationSwitcher(hasTranslation , id , title ) %}
Original file line number Diff line number Diff line change 55
66{% if div %}
77<span class =" cltype{{ value }}" id =" contact{{ contact .getId }}"
8- onclick =" showContactModeSwitcher('{{ div }}', {{ contact .getId }});" >{{ title }}</span >
8+ onclick =" showContactModeSwitcher(this, '{{ div }}', {{ contact .getId }});" >{{ title }}</span >
99{% else %}
1010<span class =" cltype{{ value }}" style =" cursor: auto;" >{{ title }}</span >
1111{% endif %}
You can’t perform that action at this time.
0 commit comments