MDL-24777 get_emoticons_list_for_help_file() is now deprecated
This commit is contained in:
@@ -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
|
||||
}
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user