mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/12235] Convert WLM to custom profile field
PHPBB3-12235
This commit is contained in:
@@ -305,64 +305,6 @@ function apply_onkeypress_event() {
|
||||
|
||||
jQuery(document).ready(apply_onkeypress_event);
|
||||
|
||||
/**
|
||||
* Run MSN action
|
||||
*/
|
||||
function msn_action(action, address)
|
||||
{
|
||||
// Does the browser support the MSNM object?
|
||||
var app = document.getElementById('objMessengerApp');
|
||||
|
||||
if (!app || !app.MyStatus) {
|
||||
var lang = $('form[data-lang-im-msnm-browser]');
|
||||
if (lang.length) {
|
||||
alert(lang.attr('data-lang-im-msnm-browser'));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Is MSNM connected?
|
||||
if (app.MyStatus == 1) {
|
||||
var lang = $('form[data-lang-im-msnm-connect]');
|
||||
if (lang.length) {
|
||||
alert(lang.attr('data-lang-im-msnm-connect'));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Do stuff
|
||||
try {
|
||||
switch (action) {
|
||||
case 'add':
|
||||
app.AddContact(0, address);
|
||||
break;
|
||||
|
||||
case 'im':
|
||||
app.InstantMessage(address);
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add to your contact list
|
||||
*/
|
||||
function add_contact(address)
|
||||
{
|
||||
msn_action('add', address);
|
||||
}
|
||||
|
||||
/**
|
||||
* Write IM to contact
|
||||
*/
|
||||
function im_contact(address)
|
||||
{
|
||||
msn_action('im', address);
|
||||
}
|
||||
|
||||
/**
|
||||
* Functions for user search popup
|
||||
*/
|
||||
|
Reference in New Issue
Block a user