Add tooltip so you can tell which phone number is which in addressbook list

This commit is contained in:
nathangray 2017-03-02 10:53:42 -07:00
parent 63a168573a
commit e649793aee
2 changed files with 8 additions and 5 deletions

View File

@ -138,10 +138,10 @@
</menulist> </menulist>
</vbox> </vbox>
<vbox> <vbox>
<url-phone id="${row}[tel_work]" readonly="true" class="telNumbers"/> <url-phone id="${row}[tel_work]" readonly="true" class="telNumbers" statustext="Business phone"/>
<url-phone id="${row}[tel_cell]" readonly="true" class="telNumbers"/> <url-phone id="${row}[tel_cell]" readonly="true" class="telNumbers" statustext="Mobile phone"/>
<url-phone id="${row}[tel_home]" readonly="true" class="telNumbers"/> <url-phone id="${row}[tel_home]" readonly="true" class="telNumbers" statustext="Home phone"/>
<url-phone id="${row}[tel_fax]" readonly="true"/> <url-phone id="${row}[tel_fax]" readonly="true" statustext="Fax"/>
<description id="${row}[tel_prefered]" no_lang="1" href="$row_cont[tel_prefered_link]" extra_link_target="calling" extra_link_popup="$cont[call_popup]"/> <description id="${row}[tel_prefered]" no_lang="1" href="$row_cont[tel_prefered_link]" extra_link_target="calling" extra_link_popup="$cont[call_popup]"/>
</vbox> </vbox>
<vbox> <vbox>

View File

@ -418,7 +418,10 @@ var et2_url_ro = (function(){ "use strict"; return et2_valueWidget.extend([et2_I
{ {
_nodes[0].setAttribute("class", _values["class"]); _nodes[0].setAttribute("class", _values["class"]);
} }
if(this.options.statustext)
{
this.span.attr('title',this.options.statustext);
}
} }
});}).call(this); });}).call(this);
et2_register_widget(et2_url_ro, ["url_ro", "url-email_ro", "url-phone_ro"]); et2_register_widget(et2_url_ro, ["url_ro", "url-email_ro", "url-phone_ro"]);