MDL-24777 get_emoticons_list_for_help_file() is now deprecated

This commit is contained in:
David Mudrak
2010-10-23 18:41:21 +00:00
parent e540629edf
commit 1809723881
3 changed files with 12 additions and 68 deletions
+1 -32
View File
@@ -978,37 +978,6 @@ function openpopup(event, args) {
return false;
}
/* This is only used on a few help pages. */
emoticons_help = {
inputarea: null,
init: function(formname, fieldname, listid) {
if (!opener || !opener.document.forms[formname]) {
return;
}
emoticons_help.inputarea = opener.document.forms[formname][fieldname];
if (!emoticons_help.inputarea) {
return;
}
var emoticons = document.getElementById(listid).getElementsByTagName('li');
for (var i = 0; i < emoticons.length; i++) {
var text = emoticons[i].getElementsByTagName('img')[0].alt;
YAHOO.util.Event.addListener(emoticons[i], 'click', emoticons_help.inserttext, text);
}
},
inserttext: function(e, text) {
text = ' ' + text + ' ';
if (emoticons_help.inputarea.createTextRange && emoticons_help.inputarea.caretPos) {
var caretPos = emoticons_help.inputarea.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
} else {
emoticons_help.inputarea.value += text;
}
emoticons_help.inputarea.focus();
}
};
/** Close the current browser window. */
function close_window(e) {
if (e.preventDefault) {
@@ -1570,4 +1539,4 @@ M.util.init_mp3flowplayerplugin = function (id, playerpath, audioplayerpath, fil
autoPlay: false
}
});
};
};