зеркало из https://github.com/mozilla/pjs.git
Fixed list onClick handlers in test1 and test2 to work with the updated
e.target. (e.target used to be the list, now it's the option)
This commit is contained in:
Родитель
f22d964d31
Коммит
c53112db82
|
@ -318,7 +318,7 @@ function onListChanUsers ()
|
|||
|
||||
function onListClick (e)
|
||||
{
|
||||
var name = e.target.options[e.target.selectedIndex].text;
|
||||
var name = e.target.text;
|
||||
var ary = name.match(/\[.*\] (.*)/);
|
||||
var name = (ary) ? ary[1] : name;
|
||||
var btn = document.getElementById ("btnCommand");
|
||||
|
|
|
@ -379,7 +379,7 @@ function onListChanUsers ()
|
|||
|
||||
function onListClick (e)
|
||||
{
|
||||
var name = e.target.options[e.target.selectedIndex].text;
|
||||
var name = e.target.text;
|
||||
var ary = name.match(/\[.*\] (.*)/);
|
||||
var name = (ary) ? ary[1] : name;
|
||||
|
||||
|
@ -410,7 +410,7 @@ function onListClick (e)
|
|||
|
||||
function onActListClick (e)
|
||||
{
|
||||
var name = e.target.options[e.target.selectedIndex].text;
|
||||
var name = e.target.text;
|
||||
var ary = name.match(/\[.*\] (.*)/);
|
||||
var name = (ary) ? ary[1] : name;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче