Increment the menu ID so the first menu works. props junsuijin. fixes #12339

git-svn-id: https://develop.svn.wordpress.org/trunk@13365 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2010-02-24 07:58:14 +00:00
parent a9b221bb6e
commit 537dc90ea6
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ function appendToList(templatedir,additemtype,itemtext,itemurl,itemid,itemparent
inputdescription = '';
}
var count=document.getElementById('custom-nav').getElementsByTagName('li').length;
var count=document.getElementById('custom-nav').getElementsByTagName('li').length + 1;
var randomnumber = count;

File diff suppressed because one or more lines are too long