MDL-29441 Chat: Use a valid name for chat popup actions

This commit is contained in:
Andrew Nicols
2013-10-12 00:52:55 +08:00
parent f8eff10319
commit ee4ece6822
2 changed files with 5 additions and 5 deletions

View File

@ -1313,10 +1313,10 @@ function openpopup(event, args) {
args.name = '_blank';
} else if (args.name.match(nameregex)) {
// Cleans window name because IE does not support funky ones.
args.name = args.name.replace(nameregex, '_');
if (M.cfg.developerdebug) {
alert('DEVELOPER NOTICE: Invalid \'name\' passed to openpopup()');
alert('DEVELOPER NOTICE: Invalid \'name\' passed to openpopup(): ' + args.name);
}
args.name = args.name.replace(nameregex, '_');
}
var fullurl = args.url;